v1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// Group in the kubernetes api
	Group = "lcnc.yndd.io"
	// Version in the kubernetes api
	Version = "v1"
)
View Source
const (
	ResourceContextKind     = "ResourceContext"
	ResourceContextListKind = "ResourceContextList"

	ResourceContextSingular  = "resourcecontext"
	ResourceContextPlural    = "resourcecontexts"
	ResourceContextShortName = "ctx"
)

Variables

View Source
var (
	GroupVersion                    = schema.GroupVersion{Group: Group, Version: Version}
	ResourceContextGroupKind        = schema.GroupKind{Group: Group, Kind: ResourceContextKind}.String()
	ResourceContextKindAPIVersion   = ResourceContextKind + "." + GroupVersion.String()
	ResourceContextGroupVersionKind = GroupVersion.WithKind(ResourceContextKind)

	ControllerPkgRevLabelKey = strings.ToLower(ResourceContextKind) + "/" + "PackageRevision"
)
View Source
var AddToScheme = schemeBuilder.AddToScheme

Registers this API group and version to a scheme Note: Generator *requires* it to be called "AddToScheme"

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

Functions

func Kind

func Kind(kind string) schema.GroupKind

Takes an unqualified kind and returns a group-qualified GroupKind Note: Generator *requires* it to be called "Kind"

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group-qualified GroupResource.

Types

type Properties added in v0.0.4

type Properties struct {
	// holds the input of the CR
	Origin map[string]runtime.RawExtension `json:"origin,omitempty" yaml:"origin,omitempty"`
	// holds the input of the CR
	Input map[string][]runtime.RawExtension `json:"input,omitempty" yaml:"input,omitempty"`
	// holds the allocation of the CR with the key being GVK in string format
	Conditions map[string][]runtime.RawExtension `json:"conditions,omitempty" yaml:"conditions,omitempty"`
	// holds the output of the CR with the key being GVK in string format
	Output map[string][]runtime.RawExtension `json:"output,omitempty" yaml:"output,omitempty"`
}

ResourceContextSpec defines the context of the resource of the controller

func (*Properties) DeepCopy added in v0.0.4

func (in *Properties) DeepCopy() *Properties

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

func (*Properties) DeepCopyInto added in v0.0.4

func (in *Properties) DeepCopyInto(out *Properties)

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

type ResourceContext

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

	Spec   Spec   `json:"spec,omitempty" yaml:"spec,omitempty"`
	Status Status `json:"status,omitempty" yaml:"status,omitempty"`
}

ResourceContext is the Schema for the lcnc runtime API +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:subresource:status

func (*ResourceContext) DeepCopy

func (in *ResourceContext) DeepCopy() *ResourceContext

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

func (*ResourceContext) DeepCopyInto

func (in *ResourceContext) DeepCopyInto(out *ResourceContext)

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

func (*ResourceContext) DeepCopyObject

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

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

type ResourceContextList

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

	Items []ResourceContext `json:"items" yaml:"items"`
}

ResourceContextList +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true

func (*ResourceContextList) DeepCopy

func (in *ResourceContextList) DeepCopy() *ResourceContextList

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

func (*ResourceContextList) DeepCopyInto

func (in *ResourceContextList) DeepCopyInto(out *ResourceContextList)

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

func (*ResourceContextList) DeepCopyObject

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

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

type Spec added in v0.0.4

type Spec struct {
	Properties *Properties `json:"properties,omitempty"`
}

func (*Spec) DeepCopy added in v0.0.4

func (in *Spec) DeepCopy() *Spec

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

func (*Spec) DeepCopyInto added in v0.0.4

func (in *Spec) DeepCopyInto(out *Spec)

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

type Status added in v0.0.4

type Status struct {
}

Status defines the context of the resource of the controller

func (*Status) DeepCopy added in v0.0.4

func (in *Status) DeepCopy() *Status

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

func (*Status) DeepCopyInto added in v0.0.4

func (in *Status) DeepCopyInto(out *Status)

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