v1

package
v0.0.0-...-af8fcda Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the app v1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=KubeService/pkg/apis/app +k8s:defaulter-gen=TypeMeta +groupName=app.o0w0o.cn

Package v1 contains API Schema definitions for the app v1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=KubeService/pkg/apis/app +k8s:defaulter-gen=TypeMeta +groupName=app.o0w0o.cn

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "app.o0w0o.cn", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme is required by pkg/client/...
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource is required by pkg/client/listers/...

Types

type App

type App struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AppSpec   `json:"spec,omitempty"`
	Status AppStatus `json:"status,omitempty"`
}

App is the Schema for the apps API +k8s:openapi-gen=true +kubebuilder:subresource:status

func (*App) DeepCopy

func (in *App) DeepCopy() *App

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new App.

func (*App) DeepCopyInto

func (in *App) DeepCopyInto(out *App)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*App) DeepCopyObject

func (in *App) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AppCondition

type AppCondition struct {
	// Type of deployment condition.
	Type AppConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=AppConditionType"`
	// Status of the condition, one of True, False, Unknown.
	Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"`
	// The last time this condition was updated.
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,7,opt,name=lastTransitionTime"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"`
}

type AppConditionType

type AppConditionType string
const (
	AppAvailable   AppConditionType = "Available"
	AppProgressing AppConditionType = "Progressing"
)

type AppList

type AppList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []App `json:"items"`
}

AppList contains a list of App

func (*AppList) DeepCopy

func (in *AppList) DeepCopy() *AppList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppList.

func (*AppList) DeepCopyInto

func (in *AppList) DeepCopyInto(out *AppList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AppList) DeepCopyObject

func (in *AppList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AppSpec

type AppSpec struct {
	MicroServices []MicroServiceTemplate `json:"microServices,omitempty"`
}

AppSpec defines the desired state of App

func (*AppSpec) DeepCopy

func (in *AppSpec) DeepCopy() *AppSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSpec.

func (*AppSpec) DeepCopyInto

func (in *AppSpec) DeepCopyInto(out *AppSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppStatus

type AppStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Conditions             []AppCondition `json:"conditions,omitempty"`
	AvailableMicroServices int32          `json:"availableVersions,omitempty" protobuf:"varint,4,opt,name=availableMSs"`
	TotalMicroServices     int32          `json:"totalVersions,omitempty" protobuf:"varint,4,opt,name=totalMSs"`
}

AppStatus defines the observed state of App

func (*AppStatus) DeepCopy

func (in *AppStatus) DeepCopy() *AppStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppStatus.

func (*AppStatus) DeepCopyInto

func (in *AppStatus) DeepCopyInto(out *AppStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Canary

type Canary struct {
	// +kubebuilder:validation:Maximum=100
	// +kubebuilder:validation:Minimum=1
	Weight int `json:"weight"`

	// +optional
	CanaryIngressName string `json:"canaryIngressName,omitempty"`

	// +optional
	Header string `json:"header,omitempty"`

	// +optional
	HeaderValue string `json:"headerValue,omitempty"`

	// +optional
	Cookie string `json:"cookie,omitempty"`
}

func (*Canary) DeepCopy

func (in *Canary) DeepCopy() *Canary

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Canary.

func (*Canary) DeepCopyInto

func (in *Canary) DeepCopyInto(out *Canary)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConditionStatus

type ConditionStatus string
const (
	ConditionTrue    ConditionStatus = "True"
	ConditionFalse   ConditionStatus = "False"
	ConditionUnknown ConditionStatus = "Unknown"
)

type DeployVersion

type DeployVersion struct {
	Name     string                `json:"name"`
	Template appsv1.DeploymentSpec `json:"template"`

	// +optional
	ServiceName string `json:"serviceName,omitempty"`

	// +optional
	Canary *Canary `json:"canary,omitempty"`
}

func (*DeployVersion) DeepCopy

func (in *DeployVersion) DeepCopy() *DeployVersion

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployVersion.

func (*DeployVersion) DeepCopyInto

func (in *DeployVersion) DeepCopyInto(out *DeployVersion)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IngressLoadBalance

type IngressLoadBalance struct {
	Name string                        `json:"name"`
	Spec extensionsv1beta1.IngressSpec `json:"spec"`
}

func (*IngressLoadBalance) DeepCopy

func (in *IngressLoadBalance) DeepCopy() *IngressLoadBalance

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalance.

func (*IngressLoadBalance) DeepCopyInto

func (in *IngressLoadBalance) DeepCopyInto(out *IngressLoadBalance)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LoadBalance

type LoadBalance struct {
	// +optional
	Service *ServiceLoadBalance `json:"service,omitempty"`
	// +optional
	Ingress *IngressLoadBalance `json:"ingress,omitempty"`
}

func (*LoadBalance) DeepCopy

func (in *LoadBalance) DeepCopy() *LoadBalance

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalance.

func (*LoadBalance) DeepCopyInto

func (in *LoadBalance) DeepCopyInto(out *LoadBalance)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MicroService

type MicroService struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   MicroServiceSpec   `json:"spec,omitempty"`
	Status MicroServiceStatus `json:"status,omitempty"`
}

MicroService is the Schema for the microservices API +k8s:openapi-gen=true +kubebuilder:subresource:status

func (*MicroService) DeepCopy

func (in *MicroService) DeepCopy() *MicroService

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroService.

func (*MicroService) DeepCopyInto

func (in *MicroService) DeepCopyInto(out *MicroService)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MicroService) DeepCopyObject

func (in *MicroService) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MicroServiceCondition

type MicroServiceCondition struct {
	// Type of deployment condition.
	Type MicroServiceConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=MicroServiceConditionType"`
	// Status of the condition, one of True, False, Unknown.
	Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"`
	// The last time this condition was updated.
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,7,opt,name=lastTransitionTime"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"`
}

type MicroServiceConditionType

type MicroServiceConditionType string
const (
	MicroServiceAvailable   MicroServiceConditionType = "Available"
	MicroServiceProgressing MicroServiceConditionType = "Progressing"
)

type MicroServiceList

type MicroServiceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MicroService `json:"items"`
}

MicroServiceList contains a list of MicroService

func (*MicroServiceList) DeepCopy

func (in *MicroServiceList) DeepCopy() *MicroServiceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroServiceList.

func (*MicroServiceList) DeepCopyInto

func (in *MicroServiceList) DeepCopyInto(out *MicroServiceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MicroServiceList) DeepCopyObject

func (in *MicroServiceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MicroServiceSpec

type MicroServiceSpec struct {
	// +optional
	LoadBalance        *LoadBalance    `json:"loadBalance,omitempty"`
	Versions           []DeployVersion `json:"versions"`
	CurrentVersionName string          `json:"currentVersionName"`
}

MicroServiceSpec defines the desired state of MicroService

func (*MicroServiceSpec) DeepCopy

func (in *MicroServiceSpec) DeepCopy() *MicroServiceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroServiceSpec.

func (*MicroServiceSpec) DeepCopyInto

func (in *MicroServiceSpec) DeepCopyInto(out *MicroServiceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MicroServiceStatus

type MicroServiceStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Conditions        []MicroServiceCondition `json:"conditions,omitempty"`
	AvailableVersions int32                   `json:"availableVersions,omitempty" protobuf:"varint,4,opt,name=availableVersions"`
	TotalVersions     int32                   `json:"totalVersions,omitempty" protobuf:"varint,4,opt,name=totalVersions"`
}

MicroServiceStatus defines the observed state of MicroService

func (*MicroServiceStatus) DeepCopy

func (in *MicroServiceStatus) DeepCopy() *MicroServiceStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroServiceStatus.

func (*MicroServiceStatus) DeepCopyInto

func (in *MicroServiceStatus) DeepCopyInto(out *MicroServiceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MicroServiceTemplate

type MicroServiceTemplate struct {
	Name string           `json:"name"`
	Spec MicroServiceSpec `json:"spec,omitempty"`
}

EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

func (*MicroServiceTemplate) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroServiceTemplate.

func (*MicroServiceTemplate) DeepCopyInto

func (in *MicroServiceTemplate) DeepCopyInto(out *MicroServiceTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceLoadBalance

type ServiceLoadBalance struct {
	Name string             `json:"name"`
	Spec corev1.ServiceSpec `json:"spec"`
}

func (*ServiceLoadBalance) DeepCopy

func (in *ServiceLoadBalance) DeepCopy() *ServiceLoadBalance

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceLoadBalance.

func (*ServiceLoadBalance) DeepCopyInto

func (in *ServiceLoadBalance) DeepCopyInto(out *ServiceLoadBalance)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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