-
Notifications
You must be signed in to change notification settings - Fork 11
/
types.go
34 lines (27 loc) · 864 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ObjectStoreList struct for lists
type ObjectStoreList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []ObjectStore `json:"items"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ObjectStore struct bounds together the related struct
type ObjectStore struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata"`
Spec ObjectStoreSpec `json:"spec"`
Status ObjectStoreStatus `json:"status,omitempty"`
}
// ObjectStoreSpec struct holds specs
type ObjectStoreSpec struct {
Name string
}
// ObjectStoreStatus struct holds status related things
type ObjectStoreStatus struct {
// Fill me
}