Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRVersion ¶
type CRVersion struct { Name string `json:"name"` CRName string `json:"CRName"` DefaultValues string `json:"defaultValues,omitempty"` }
CRVersion gives default values of a specific version defined by CRD
type CloudNativeService ¶
type CloudNativeService struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CloudNativeServiceSpec `json:"spec,omitempty"` }
CloudNativeService constructs service information in a common way that eliminates differences between different implementations.
func (*CloudNativeService) Validation ¶
func (c *CloudNativeService) Validation() bool
Validation does the CloudNativeService is valid or not
type CloudNativeServiceResponse ¶
type CloudNativeServiceResponse struct { Repo string `json:"repo"` Name string `json:"name"` Version string `json:"version"` }
CloudNativeServiceResponse is the http response of PushService
type CloudNativeServiceSpec ¶
type CloudNativeServiceSpec struct { Operator *OperatorSpec `json:"operator,omitempty"` RawResource *RawResource `json:"rawResource,omitempty"` Description apis.Descriptor `json:"description"` Manifests []CustomServiceDefinition `json:"manifests,omitempty"` Version string `json:"version"` }
CloudNativeServiceSpec defines the specification for a CloudNativeService.
func (*CloudNativeServiceSpec) Validation ¶
func (s *CloudNativeServiceSpec) Validation() bool
Validation does the CloudNativeServiceSpec is valid or not, and generate some attribute
type CustomServiceDefinition ¶
type CustomServiceDefinition struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CustomServiceDefinitionSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` }
CustomServiceDefinition defines additional information of a CRD
type CustomServiceDefinitionSpec ¶
type CustomServiceDefinitionSpec struct { CRD *apis.AbstractResource `json:"CRD,omitempty"` CRDName string `json:"CRDName,omitempty"` CRVersions []CRVersion `json:"CRVersions,omitempty"` Description string `json:"description,omitempty"` Role ResourceRole `json:"role,omitempty"` CapabilityRequirements []GVKAndName `json:"capabilityRequirements,omitempty"` }
CustomServiceDefinitionSpec is the spec of CustomServiceDefinition
type GVKAndName ¶
type GVKAndName struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` }
GVKAndName uniquely identifies a GVK+Name
type OperatorSpec ¶
type OperatorSpec struct { Deployments []appsv1.Deployment `json:"deployments"` ServiceAccounts []corev1.ServiceAccount `json:"serviceAccounts,omitempty"` Roles []rbac.Role `json:"roles,omitempty"` RoleBindings []rbac.RoleBinding `json:"roleBindings,omitempty"` ClusterRoles []rbac.ClusterRole `json:"clusterRoles,omitempty"` ClusterRoleBindings []rbac.ClusterRoleBinding `json:"clusterRoleBindings,omitempty"` }
OperatorSpec represents ServicePack lifecycle.
type RawResource ¶
type RawResource struct { Type apis.RawServiceType `json:"type,omitempty"` Spec apis.AbstractResource `json:"spec,omitempty"` }
RawResource define CloudNativeService include 3rd service, one of
type Repository ¶
Repository is the http request of CreateRepo
type ResourceRole ¶
type ResourceRole string
ResourceRole is the role of a CRD, can be ServiceEntity or Attribute