Documentation
¶
Index ¶
Constants ¶
const ( // Group in the kubernetes api Group = "lcnc.yndd.io" // Version in the kubernetes api Version = "v1" )
const ( ResourceContextKind = "ResourceContext" ResourceContextListKind = "ResourceContextList" ResourceContextSingular = "resourcecontext" ResourceContextPlural = "resourcecontexts" ResourceContextShortName = "ctx" )
Variables ¶
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" )
var AddToScheme = schemeBuilder.AddToScheme
Registers this API group and version to a scheme Note: Generator *requires* it to be called "AddToScheme"
var SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}
Functions ¶
func Kind ¶
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 {
// fnconfig provides additional configuration for the function
FunctionConfig map[string]runtime.RawExtension `json:"functionConfig,omitempty" yaml:"functionConfig,omitempty"`
// 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 output of the CR with the key being GVK in string format
Output map[string][]runtime.RawExtension `json:"output,omitempty" yaml:"output,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"`
// results provide a structured
Results Results `json:"results,omitempty" yaml:"results,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 ResourceRef ¶ added in v0.0.5
type ResourceRef struct {
APIVersion string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`
Kind string `json:"kind,omitempty" yaml:"kind,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
}
ResourceRef fills the ResourceRef field in Results
func (*ResourceRef) DeepCopy ¶ added in v0.0.5
func (in *ResourceRef) DeepCopy() *ResourceRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRef.
func (*ResourceRef) DeepCopyInto ¶ added in v0.0.5
func (in *ResourceRef) DeepCopyInto(out *ResourceRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Result ¶ added in v0.0.5
type Result struct {
// Message is a human readable message. This field is required.
Message string `json:"message,omitempty" yaml:"message,omitempty"`
// ResourceRef is a reference to a resource.
// Required fields: apiVersion, kind, name.
ResourceRef *ResourceRef `json:"resourceRef,omitempty" yaml:"resourceRef,omitempty"`
}
Result defines a result for the fucntion execution
func (*Result) DeepCopy ¶ added in v0.0.5
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Result.
func (*Result) DeepCopyInto ¶ added in v0.0.5
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Results ¶ added in v0.0.5
type Results []*Result
func (Results) DeepCopy ¶ added in v0.0.5
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Results.
func (Results) DeepCopyInto ¶ added in v0.0.5
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Spec ¶ added in v0.0.4
type Spec struct {
Properties *Properties `json:"properties,omitempty"`
}
func (*Spec) DeepCopy ¶ added in v0.0.4
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spec.
func (*Spec) DeepCopyInto ¶ added in v0.0.4
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
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶ added in v0.0.4
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.