v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=function.ibm.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

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

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Action

type Action struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ActionSpec   `json:"spec,omitempty"`
	Status            ActionStatus `json:"status,omitempty"`
}

func (*Action) DeepCopy

func (in *Action) DeepCopy() *Action

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

func (*Action) DeepCopyInto

func (in *Action) DeepCopyInto(out *Action)

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

func (*Action) DeepCopyObject

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

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

func (*Action) SetupWebhookWithManager

func (r *Action) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Action) ValidateCreate

func (r *Action) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Action) ValidateDelete

func (r *Action) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Action) ValidateUpdate

func (r *Action) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ActionList

type ActionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Action CRD objects
	Items []Action `json:"items,omitempty"`
}

ActionList is a list of Actions

func (*ActionList) DeepCopy

func (in *ActionList) DeepCopy() *ActionList

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

func (*ActionList) DeepCopyInto

func (in *ActionList) DeepCopyInto(out *ActionList)

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

func (*ActionList) DeepCopyObject

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

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

type ActionSpec

type ActionSpec struct {
	State *ActionSpecResource `json:"state,omitempty" tf:"-"`

	Resource ActionSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*ActionSpec) DeepCopy

func (in *ActionSpec) DeepCopy() *ActionSpec

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

func (*ActionSpec) DeepCopyInto

func (in *ActionSpec) DeepCopyInto(out *ActionSpec)

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

type ActionSpecExec

type ActionSpecExec struct {
	// The code to execute.
	// +optional
	Code *string `json:"code,omitempty" tf:"code"`
	// The file path of code to execute.
	// +optional
	CodePath *string `json:"codePath,omitempty" tf:"code_path"`
	// The List of fully qualified action.
	// +optional
	Components []string `json:"components,omitempty" tf:"components"`
	// Container image name when kind is 'blackbox'.
	// +optional
	Image *string `json:"image,omitempty" tf:"image"`
	// Optional zipfile reference.
	// +optional
	Init *string `json:"init,omitempty" tf:"init"`
	// The type of action. Possible values can be found here (https://cloud.ibm.com/docs/openwhisk?topic=cloud-functions-runtimes)
	Kind *string `json:"kind" tf:"kind"`
	// The name of the action entry point (function or fully-qualified method name when applicable).
	// +optional
	Main *string `json:"main,omitempty" tf:"main"`
}

func (*ActionSpecExec) DeepCopy

func (in *ActionSpecExec) DeepCopy() *ActionSpecExec

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

func (*ActionSpecExec) DeepCopyInto

func (in *ActionSpecExec) DeepCopyInto(out *ActionSpecExec)

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

type ActionSpecExecCodec

type ActionSpecExecCodec struct {
}

+k8s:deepcopy-gen=false

func (ActionSpecExecCodec) Decode

func (ActionSpecExecCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)

func (ActionSpecExecCodec) Encode

func (ActionSpecExecCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (ActionSpecExecCodec) IsEmpty

func (ActionSpecExecCodec) IsEmpty(ptr unsafe.Pointer) bool

type ActionSpecLimits

type ActionSpecLimits struct {
	// The maximum log size LIMIT in MB for the action.
	// +optional
	LogSize *int64 `json:"logSize,omitempty" tf:"log_size"`
	// The maximum memory LIMIT in MB for the action (default 256.
	// +optional
	Memory *int64 `json:"memory,omitempty" tf:"memory"`
	// The timeout LIMIT in milliseconds after which the action is terminated.
	// +optional
	Timeout *int64 `json:"timeout,omitempty" tf:"timeout"`
}

func (*ActionSpecLimits) DeepCopy

func (in *ActionSpecLimits) DeepCopy() *ActionSpecLimits

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

func (*ActionSpecLimits) DeepCopyInto

func (in *ActionSpecLimits) DeepCopyInto(out *ActionSpecLimits)

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

type ActionSpecLimitsCodec

type ActionSpecLimitsCodec struct {
}

+k8s:deepcopy-gen=false

func (ActionSpecLimitsCodec) Decode

func (ActionSpecLimitsCodec) Encode

func (ActionSpecLimitsCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (ActionSpecLimitsCodec) IsEmpty

type ActionSpecResource

type ActionSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// +optional
	ActionID *string `json:"actionID,omitempty" tf:"action_id"`
	// All annotations set on action by user and those set by the IBM Cloud Function backend/API.
	// +optional
	Annotations *string `json:"annotations,omitempty" tf:"annotations"`
	// Execution info
	Exec *ActionSpecExec `json:"exec" tf:"exec"`
	// +optional
	Limits *ActionSpecLimits `json:"limits,omitempty" tf:"limits"`
	// Name of action.
	Name *string `json:"name" tf:"name"`
	// IBM Cloud function namespace.
	Namespace *string `json:"namespace" tf:"namespace"`
	// All paramters set on action by user and those set by the IBM Cloud Function backend/API.
	// +optional
	Parameters *string `json:"parameters,omitempty" tf:"parameters"`
	// Action visibilty.
	// +optional
	Publish *bool `json:"publish,omitempty" tf:"publish"`
	// Action target endpoint URL.
	// +optional
	TargetEndpointURL *string `json:"targetEndpointURL,omitempty" tf:"target_endpoint_url"`
	// Annotation values in KEY VALUE format.
	// +optional
	UserDefinedAnnotations *string `json:"userDefinedAnnotations,omitempty" tf:"user_defined_annotations"`
	// Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the action.
	// +optional
	UserDefinedParameters *string `json:"userDefinedParameters,omitempty" tf:"user_defined_parameters"`
	// Semantic version of the item.
	// +optional
	Version *string `json:"version,omitempty" tf:"version"`
}

func (*ActionSpecResource) DeepCopy

func (in *ActionSpecResource) DeepCopy() *ActionSpecResource

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

func (*ActionSpecResource) DeepCopyInto

func (in *ActionSpecResource) DeepCopyInto(out *ActionSpecResource)

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

type ActionStatus

type ActionStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*ActionStatus) DeepCopy

func (in *ActionStatus) DeepCopy() *ActionStatus

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

func (*ActionStatus) DeepCopyInto

func (in *ActionStatus) DeepCopyInto(out *ActionStatus)

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

type Namespace

type Namespace struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NamespaceSpec   `json:"spec,omitempty"`
	Status            NamespaceStatus `json:"status,omitempty"`
}

func (*Namespace) DeepCopy

func (in *Namespace) DeepCopy() *Namespace

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

func (*Namespace) DeepCopyInto

func (in *Namespace) DeepCopyInto(out *Namespace)

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

func (*Namespace) DeepCopyObject

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

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

func (*Namespace) SetupWebhookWithManager

func (r *Namespace) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Namespace) ValidateCreate

func (r *Namespace) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Namespace) ValidateDelete

func (r *Namespace) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Namespace) ValidateUpdate

func (r *Namespace) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type NamespaceList

type NamespaceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Namespace CRD objects
	Items []Namespace `json:"items,omitempty"`
}

NamespaceList is a list of Namespaces

func (*NamespaceList) DeepCopy

func (in *NamespaceList) DeepCopy() *NamespaceList

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

func (*NamespaceList) DeepCopyInto

func (in *NamespaceList) DeepCopyInto(out *NamespaceList)

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

func (*NamespaceList) DeepCopyObject

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

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

type NamespaceSpec

type NamespaceSpec struct {
	State *NamespaceSpecResource `json:"state,omitempty" tf:"-"`

	Resource NamespaceSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*NamespaceSpec) DeepCopy

func (in *NamespaceSpec) DeepCopy() *NamespaceSpec

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

func (*NamespaceSpec) DeepCopyInto

func (in *NamespaceSpec) DeepCopyInto(out *NamespaceSpec)

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

type NamespaceSpecResource

type NamespaceSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Namespace Description.
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// Namespace Location.
	// +optional
	Location *string `json:"location,omitempty" tf:"location"`
	// Name of namespace.
	Name *string `json:"name" tf:"name"`
	// Resource Group ID.
	ResourceGroupID *string `json:"resourceGroupID" tf:"resource_group_id"`
}

func (*NamespaceSpecResource) DeepCopy

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

func (*NamespaceSpecResource) DeepCopyInto

func (in *NamespaceSpecResource) DeepCopyInto(out *NamespaceSpecResource)

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

type NamespaceStatus

type NamespaceStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*NamespaceStatus) DeepCopy

func (in *NamespaceStatus) DeepCopy() *NamespaceStatus

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

func (*NamespaceStatus) DeepCopyInto

func (in *NamespaceStatus) DeepCopyInto(out *NamespaceStatus)

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

type Package

type Package struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PackageSpec   `json:"spec,omitempty"`
	Status            PackageStatus `json:"status,omitempty"`
}

func (*Package) DeepCopy

func (in *Package) DeepCopy() *Package

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

func (*Package) DeepCopyInto

func (in *Package) DeepCopyInto(out *Package)

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

func (*Package) DeepCopyObject

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

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

func (*Package) SetupWebhookWithManager

func (r *Package) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Package) ValidateCreate

func (r *Package) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Package) ValidateDelete

func (r *Package) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Package) ValidateUpdate

func (r *Package) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type PackageList

type PackageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Package CRD objects
	Items []Package `json:"items,omitempty"`
}

PackageList is a list of Packages

func (*PackageList) DeepCopy

func (in *PackageList) DeepCopy() *PackageList

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

func (*PackageList) DeepCopyInto

func (in *PackageList) DeepCopyInto(out *PackageList)

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

func (*PackageList) DeepCopyObject

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

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

type PackageSpec

type PackageSpec struct {
	State *PackageSpecResource `json:"state,omitempty" tf:"-"`

	Resource PackageSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*PackageSpec) DeepCopy

func (in *PackageSpec) DeepCopy() *PackageSpec

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

func (*PackageSpec) DeepCopyInto

func (in *PackageSpec) DeepCopyInto(out *PackageSpec)

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

type PackageSpecResource

type PackageSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// All annotations set on package by user and those set by the IBM Cloud Function backend/API.
	// +optional
	Annotations *string `json:"annotations,omitempty" tf:"annotations"`
	// Name of package to be binded.
	// +optional
	BindPackageName *string `json:"bindPackageName,omitempty" tf:"bind_package_name"`
	// Name of package.
	Name *string `json:"name" tf:"name"`
	// IBM Cloud function namespace.
	Namespace *string `json:"namespace" tf:"namespace"`
	// +optional
	PackageID *string `json:"packageID,omitempty" tf:"package_id"`
	// All parameters set on package by user and those set by the IBM Cloud Function backend/API.
	// +optional
	Parameters *string `json:"parameters,omitempty" tf:"parameters"`
	// Package visibilty.
	// +optional
	Publish *bool `json:"publish,omitempty" tf:"publish"`
	// Annotation values in KEY VALUE format.
	// +optional
	UserDefinedAnnotations *string `json:"userDefinedAnnotations,omitempty" tf:"user_defined_annotations"`
	// Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the package.
	// +optional
	UserDefinedParameters *string `json:"userDefinedParameters,omitempty" tf:"user_defined_parameters"`
	// Semantic version of the item.
	// +optional
	Version *string `json:"version,omitempty" tf:"version"`
}

func (*PackageSpecResource) DeepCopy

func (in *PackageSpecResource) DeepCopy() *PackageSpecResource

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

func (*PackageSpecResource) DeepCopyInto

func (in *PackageSpecResource) DeepCopyInto(out *PackageSpecResource)

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

type PackageStatus

type PackageStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*PackageStatus) DeepCopy

func (in *PackageStatus) DeepCopy() *PackageStatus

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

func (*PackageStatus) DeepCopyInto

func (in *PackageStatus) DeepCopyInto(out *PackageStatus)

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

type Rule

type Rule struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              RuleSpec   `json:"spec,omitempty"`
	Status            RuleStatus `json:"status,omitempty"`
}

func (*Rule) DeepCopy

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

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

func (*Rule) DeepCopyObject

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

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

func (*Rule) SetupWebhookWithManager

func (r *Rule) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Rule) ValidateCreate

func (r *Rule) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Rule) ValidateDelete

func (r *Rule) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Rule) ValidateUpdate

func (r *Rule) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type RuleList

type RuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Rule CRD objects
	Items []Rule `json:"items,omitempty"`
}

RuleList is a list of Rules

func (*RuleList) DeepCopy

func (in *RuleList) DeepCopy() *RuleList

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

func (*RuleList) DeepCopyInto

func (in *RuleList) DeepCopyInto(out *RuleList)

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

func (*RuleList) DeepCopyObject

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

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

type RuleSpec

type RuleSpec struct {
	State *RuleSpecResource `json:"state,omitempty" tf:"-"`

	Resource RuleSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*RuleSpec) DeepCopy

func (in *RuleSpec) DeepCopy() *RuleSpec

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

func (*RuleSpec) DeepCopyInto

func (in *RuleSpec) DeepCopyInto(out *RuleSpec)

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

type RuleSpecResource

type RuleSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Name of action.
	ActionName *string `json:"actionName" tf:"action_name"`
	// Name of rule.
	Name *string `json:"name" tf:"name"`
	// IBM Cloud function namespace.
	Namespace *string `json:"namespace" tf:"namespace"`
	// Rule visbility.
	// +optional
	Publish *bool `json:"publish,omitempty" tf:"publish"`
	// +optional
	RuleID *string `json:"ruleID,omitempty" tf:"rule_id"`
	// Status of the rule.
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// Name of trigger.
	TriggerName *string `json:"triggerName" tf:"trigger_name"`
	// Semantic version of the item.
	// +optional
	Version *string `json:"version,omitempty" tf:"version"`
}

func (*RuleSpecResource) DeepCopy

func (in *RuleSpecResource) DeepCopy() *RuleSpecResource

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

func (*RuleSpecResource) DeepCopyInto

func (in *RuleSpecResource) DeepCopyInto(out *RuleSpecResource)

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

type RuleStatus

type RuleStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*RuleStatus) DeepCopy

func (in *RuleStatus) DeepCopy() *RuleStatus

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

func (*RuleStatus) DeepCopyInto

func (in *RuleStatus) DeepCopyInto(out *RuleStatus)

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

type Trigger

type Trigger struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              TriggerSpec   `json:"spec,omitempty"`
	Status            TriggerStatus `json:"status,omitempty"`
}

func (*Trigger) DeepCopy

func (in *Trigger) DeepCopy() *Trigger

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

func (*Trigger) DeepCopyInto

func (in *Trigger) DeepCopyInto(out *Trigger)

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

func (*Trigger) DeepCopyObject

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

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

func (*Trigger) SetupWebhookWithManager

func (r *Trigger) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Trigger) ValidateCreate

func (r *Trigger) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Trigger) ValidateDelete

func (r *Trigger) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Trigger) ValidateUpdate

func (r *Trigger) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type TriggerList

type TriggerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Trigger CRD objects
	Items []Trigger `json:"items,omitempty"`
}

TriggerList is a list of Triggers

func (*TriggerList) DeepCopy

func (in *TriggerList) DeepCopy() *TriggerList

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

func (*TriggerList) DeepCopyInto

func (in *TriggerList) DeepCopyInto(out *TriggerList)

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

func (*TriggerList) DeepCopyObject

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

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

type TriggerSpec

type TriggerSpec struct {
	State *TriggerSpecResource `json:"state,omitempty" tf:"-"`

	Resource TriggerSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*TriggerSpec) DeepCopy

func (in *TriggerSpec) DeepCopy() *TriggerSpec

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

func (*TriggerSpec) DeepCopyInto

func (in *TriggerSpec) DeepCopyInto(out *TriggerSpec)

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

type TriggerSpecFeed

type TriggerSpecFeed struct {
	// Trigger feed ACTION_NAME.
	Name *string `json:"name" tf:"name"`
	// Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the action invoke.
	// +optional
	Parameters *string `json:"parameters,omitempty" tf:"parameters"`
}

func (*TriggerSpecFeed) DeepCopy

func (in *TriggerSpecFeed) DeepCopy() *TriggerSpecFeed

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

func (*TriggerSpecFeed) DeepCopyInto

func (in *TriggerSpecFeed) DeepCopyInto(out *TriggerSpecFeed)

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

type TriggerSpecFeedCodec

type TriggerSpecFeedCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecFeedCodec) Decode

func (TriggerSpecFeedCodec) Encode

func (TriggerSpecFeedCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (TriggerSpecFeedCodec) IsEmpty

func (TriggerSpecFeedCodec) IsEmpty(ptr unsafe.Pointer) bool

type TriggerSpecResource

type TriggerSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// All annotations set on trigger by user and those set by the IBM Cloud Function backend/API.
	// +optional
	Annotations *string `json:"annotations,omitempty" tf:"annotations"`
	// Trigger feed
	// +optional
	Feed *TriggerSpecFeed `json:"feed,omitempty" tf:"feed"`
	// Name of Trigger.
	Name *string `json:"name" tf:"name"`
	// IBM Cloud function namespace.
	Namespace *string `json:"namespace" tf:"namespace"`
	// All parameters set on trigger by user and those set by the IBM Cloud Function backend/API.
	// +optional
	Parameters *string `json:"parameters,omitempty" tf:"parameters"`
	// Trigger visbility.
	// +optional
	Publish *bool `json:"publish,omitempty" tf:"publish"`
	// +optional
	TriggerID *string `json:"triggerID,omitempty" tf:"trigger_id"`
	// Annotation values in KEY VALUE format.
	// +optional
	UserDefinedAnnotations *string `json:"userDefinedAnnotations,omitempty" tf:"user_defined_annotations"`
	// Parameters values in KEY VALUE format. Parameter bindings included in the context passed to the trigger.
	// +optional
	UserDefinedParameters *string `json:"userDefinedParameters,omitempty" tf:"user_defined_parameters"`
	// Semantic version of the item.
	// +optional
	Version *string `json:"version,omitempty" tf:"version"`
}

func (*TriggerSpecResource) DeepCopy

func (in *TriggerSpecResource) DeepCopy() *TriggerSpecResource

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

func (*TriggerSpecResource) DeepCopyInto

func (in *TriggerSpecResource) DeepCopyInto(out *TriggerSpecResource)

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

type TriggerStatus

type TriggerStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*TriggerStatus) DeepCopy

func (in *TriggerStatus) DeepCopy() *TriggerStatus

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

func (*TriggerStatus) DeepCopyInto

func (in *TriggerStatus) DeepCopyInto(out *TriggerStatus)

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