-
Notifications
You must be signed in to change notification settings - Fork 244
/
types.go
47 lines (40 loc) · 1.36 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
package catalog
import (
imagev1 "github.com/openshift/api/image/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// ComponentType is the main struct for catalog components
type ComponentType struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ComponentSpec `json:"spec,omitempty"`
}
// ComponentSpec is the spec for ComponentType
type ComponentSpec struct {
AllTags []string `json:"allTags"`
NonHiddenTags []string `json:"nonHiddenTags"`
ImageStreamRef imagev1.ImageStream `json:"imageStreamRef"`
}
// ComponentTypeList lists all the ComponentType's
type ComponentTypeList struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Items []ComponentType `json:"items"`
}
// ServiceType is the main struct for catalog services
type ServiceType struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ServiceSpec `json:"spec,omitempty"`
}
// ServiceSpec is the spec for ServiceType
type ServiceSpec struct {
Hidden bool `json:"hidden"`
PlanList []string `json:"planList"`
}
// ServiceTypeList lists all the ServiceType's
type ServiceTypeList struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Items []ServiceType `json:"items"`
}