v1alpha1

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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 RepoResp

type RepoResp struct {
	Name            string
	Public          bool
	ServiceCount    int64
	CreateTimestamp time.Time
}

RepoResp is the http response of GetRepos

type Repository

type Repository struct {
	Name   string `json:"project_name"`
	Public bool   `json:"public"`
}

Repository is the http request of CreateRepo

type ResourceRole

type ResourceRole string

ResourceRole is the role of a CRD, can be ServiceEntity or Attribute

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL