v1alpha1

package
v0.0.0-...-817612b Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.apis/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: baetyl.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Apply

type Apply struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ApplySpec `json:"spec,omitempty"`
}

Apply customize baetyl apply resource definition.

func (*Apply) DeepCopy

func (in *Apply) DeepCopy() *Apply

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

func (*Apply) DeepCopyInto

func (in *Apply) DeepCopyInto(out *Apply)

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

func (*Apply) DeepCopyObject

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

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

type ApplyList

type ApplyList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Apply `json:"items"`
}

func (*ApplyList) DeepCopy

func (in *ApplyList) DeepCopy() *ApplyList

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

func (*ApplyList) DeepCopyInto

func (in *ApplyList) DeepCopyInto(out *ApplyList)

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

func (*ApplyList) DeepCopyObject

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

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

type ApplySpec

type ApplySpec struct {
	UserSpec     `json:",inline"`
	ClusterRef   *corev1.LocalObjectReference `json:"clusterRef,omitempty"`
	TemplatesRef *corev1.LocalObjectReference `json:"templatesRef,omitempty"`
	ApplyValues  map[string]ApplyValues       `json:"applyValues,omitempty"`
	Description  string                       `json:"description,omitempty"`
}

func (*ApplySpec) DeepCopy

func (in *ApplySpec) DeepCopy() *ApplySpec

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

func (*ApplySpec) DeepCopyInto

func (in *ApplySpec) DeepCopyInto(out *ApplySpec)

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

type ApplyValues

type ApplyValues struct {
	Name        string            `json:"name,omitempty"`
	Values      map[string]string `json:"values,omitempty"`
	ExpectTime  int64             `json:"expectTime,omitempty"`
	Description string            `json:"description,omitempty"`
}

func (*ApplyValues) DeepCopy

func (in *ApplyValues) DeepCopy() *ApplyValues

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

func (*ApplyValues) DeepCopyInto

func (in *ApplyValues) DeepCopyInto(out *ApplyValues)

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

type Cluster

type Cluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ClusterSpec `json:"spec,omitempty"`
}

Cluster customize baetyl node resource definition. Each cluster corresponds to an edge node or edge cluster.

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

type ClusterList

type ClusterList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Cluster `json:"items"`
}

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

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

func (*ClusterList) DeepCopyObject

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

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

type ClusterSpec

type ClusterSpec struct {
	CoreSpec     `json:",inline"`
	UserSpec     `json:",inline"`
	TemplateRef  *corev1.ObjectReference `json:"templateRef,omitempty"`
	ApplyRef     *corev1.ObjectReference `json:"applyRef,omitempty"`
	Attributes   map[string]string       `json:"attributes,omitempty"`
	OptionalApps []string                `json:"optionalApp,omitempty"`
	Accelerator  string                  `json:"accelerator,omitempty"`
	IsCluster    bool                    `json:"isCluster,omitempty"`
	SyncMode     string                  `json:"syncMode,omitempty"`
	NodeMode     string                  `json:"nodeMode,omitempty"`
	Description  string                  `json:"description,omitempty"`
}

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

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

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

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

type CoreSpec

type CoreSpec struct {
	CoreFrequency int64  `json:"coreFrequency,omitempty"`
	CoreAPIPort   int    `json:"coreAPIPort,omitempty"`
	CoreVersion   string `json:"coreVersion,omitempty"`
}

func (*CoreSpec) DeepCopy

func (in *CoreSpec) DeepCopy() *CoreSpec

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

func (*CoreSpec) DeepCopyInto

func (in *CoreSpec) DeepCopyInto(out *CoreSpec)

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

type Template

type Template struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              TemplateSpec `json:"spec,omitempty"`
}

Template customize baetyl template resource definition.

func (*Template) DeepCopy

func (in *Template) DeepCopy() *Template

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

func (*Template) DeepCopyInto

func (in *Template) DeepCopyInto(out *Template)

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

func (*Template) DeepCopyObject

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

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

type TemplateList

type TemplateList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Template `json:"items"`
}

func (*TemplateList) DeepCopy

func (in *TemplateList) DeepCopy() *TemplateList

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

func (*TemplateList) DeepCopyInto

func (in *TemplateList) DeepCopyInto(out *TemplateList)

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

func (*TemplateList) DeepCopyObject

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

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

type TemplateSpec

type TemplateSpec struct {
	UserSpec    `json:",inline"`
	ClusterRef  *corev1.LocalObjectReference `json:"clusterRef,omitempty"`
	ApplyRef    *corev1.LocalObjectReference `json:"applyRef,omitempty"`
	Data        map[string]string            `json:"data,omitempty"`
	Description string                       `json:"description,omitempty"`
}

func (*TemplateSpec) DeepCopy

func (in *TemplateSpec) DeepCopy() *TemplateSpec

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

func (*TemplateSpec) DeepCopyInto

func (in *TemplateSpec) DeepCopyInto(out *TemplateSpec)

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

type UserSpec

type UserSpec struct {
	UserName         string `json:"userName,omitempty"`
	UserId           string `json:"userId,omitempty"`
	OrganizationName string `json:"organizationName,omitempty"`
	OrganizationId   string `json:"organizationId,omitempty"`
	ProjectName      string `json:"projectName,omitempty"`
	ProjectId        string `json:"projectId,omitempty"`
}

func (*UserSpec) DeepCopy

func (in *UserSpec) DeepCopy() *UserSpec

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

func (*UserSpec) DeepCopyInto

func (in *UserSpec) DeepCopyInto(out *UserSpec)

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