v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package v1alpha1 contains types required for v1alpha1 +kubebuilder:object:generate=true +groupName=core.oam.dev +versionName=v1alpha1

Index

Constants

View Source
const (
	// Group .
	Group = "core.oam.dev"
	// Version .
	Version = "v1alpha1"
)

Variables

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

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

	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	DefinitionKind             = "Definition"
	DefinitionGroupVersionKind = SchemeGroupVersion.WithKind(DefinitionKind)
)

Definition meta

Functions

This section is empty.

Types

type Definition

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

	Spec DefinitionSpec `json:"spec"`
}

Definition is a internal storage for KubeVela definitions, it will never be exposed directly to end users. It will just like a configmap as internal usage, using a standalone CRD can help us optimize the efficiency for informer. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:printcolumn:name="TYPE",type=string,JSONPath=`.spec.type` +kubebuilder:resource:shortName={def}

func (*Definition) DeepCopy

func (in *Definition) DeepCopy() *Definition

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

func (*Definition) DeepCopyInto

func (in *Definition) DeepCopyInto(out *Definition)

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

func (*Definition) DeepCopyObject

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

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

type DefinitionList

type DefinitionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []Definition `json:"items"`
}

DefinitionList list for Definition +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*DefinitionList) DeepCopy

func (in *DefinitionList) DeepCopy() *DefinitionList

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

func (*DefinitionList) DeepCopyInto

func (in *DefinitionList) DeepCopyInto(out *DefinitionList)

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

func (*DefinitionList) DeepCopyObject

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

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

type DefinitionSpec

type DefinitionSpec struct {
	Type      string            `json:"type"`
	Templates map[string]string `json:"templates"`
	// +nullable
	Attributes *runtime.RawExtension `json:"attributes,omitempty"`
}

DefinitionSpec is the spec for definition

func (*DefinitionSpec) DeepCopy

func (in *DefinitionSpec) DeepCopy() *DefinitionSpec

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

func (*DefinitionSpec) DeepCopyInto

func (in *DefinitionSpec) DeepCopyInto(out *DefinitionSpec)

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