Adding autogenerated files and folders structure.
[ric-plt/ric-dep.git] / depRicKubernetesOperator / api / v1 / ricplatform_types.go
1 /*
2 Copyright 2023.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 package v1
18
19 import (
20         metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21 )
22
23 // EDIT THIS FILE!  THIS IS SCAFFOLDING FOR YOU TO OWN!
24 // NOTE: json tags are required.  Any new fields you add must have json tags for the fields to be serialized.
25
26 // RicPlatformSpec defines the desired state of RicPlatform
27 type RicPlatformSpec struct {
28         // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
29         // Important: Run "make" to regenerate code after modifying this file
30
31         // Foo is an example field of RicPlatform. Edit ricplatform_types.go to remove/update
32         Foo string `json:"foo,omitempty"`
33 }
34
35 // RicPlatformStatus defines the observed state of RicPlatform
36 type RicPlatformStatus struct {
37         // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
38         // Important: Run "make" to regenerate code after modifying this file
39 }
40
41 //+kubebuilder:object:root=true
42 //+kubebuilder:subresource:status
43
44 // RicPlatform is the Schema for the ricplatforms API
45 type RicPlatform struct {
46         metav1.TypeMeta   `json:",inline"`
47         metav1.ObjectMeta `json:"metadata,omitempty"`
48
49         Spec   RicPlatformSpec   `json:"spec,omitempty"`
50         Status RicPlatformStatus `json:"status,omitempty"`
51 }
52
53 //+kubebuilder:object:root=true
54
55 // RicPlatformList contains a list of RicPlatform
56 type RicPlatformList struct {
57         metav1.TypeMeta `json:",inline"`
58         metav1.ListMeta `json:"metadata,omitempty"`
59         Items           []RicPlatform `json:"items"`
60 }
61
62 func init() {
63         SchemeBuilder.Register(&RicPlatform{}, &RicPlatformList{})
64 }