v1alpha1

package
v0.0.0-...-8ee8a0f Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the rule v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=rule.example.com

Package v1alpha1 contains API Schema definitions for the rule v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=rule.example.com

Index

Constants

This section is empty.

Variables

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

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

Functions

Types

type Action

type Action struct {
	Output []Variable `json:"output"`
}

+k8s:openapi-gen=true

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.

type OperationRule

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

	Spec   OperationRuleSpec   `json:"spec,omitempty"`
	Status OperationRuleStatus `json:"status,omitempty"`
}

OperationRule is the Schema for the operationrules API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:resource:path=operationrules,scope=Namespaced

func (*OperationRule) DeepCopy

func (in *OperationRule) DeepCopy() *OperationRule

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

func (*OperationRule) DeepCopyInto

func (in *OperationRule) DeepCopyInto(out *OperationRule)

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

func (*OperationRule) DeepCopyObject

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

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

type OperationRuleList

type OperationRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []OperationRule `json:"items"`
}

OperationRuleList contains a list of OperationRule

func (*OperationRuleList) DeepCopy

func (in *OperationRuleList) DeepCopy() *OperationRuleList

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

func (*OperationRuleList) DeepCopyInto

func (in *OperationRuleList) DeepCopyInto(out *OperationRuleList)

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

func (*OperationRuleList) DeepCopyObject

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

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

type OperationRuleSpec

type OperationRuleSpec struct {
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	Resources    map[string]OperationRuleSpecType `json:"resources"`
	Inference    OperationRuleSpecInference       `json:"inference"`
	Expose       bool                             `json:"expose,omitempty"`
	AlertWebhook bool                             `json:"alertWebhook,omitempty"`
	HostName     string                           `json:"hostname,omitempty"`
	KNative      bool                             `json:"knative,omitempty"`
}

OperationRuleSpec defines the desired state of OperationRule +k8s:openapi-gen=true

func (*OperationRuleSpec) DeepCopy

func (in *OperationRuleSpec) DeepCopy() *OperationRuleSpec

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

func (*OperationRuleSpec) DeepCopyInto

func (in *OperationRuleSpec) DeepCopyInto(out *OperationRuleSpec)

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

type OperationRuleSpecInference

type OperationRuleSpecInference struct {
	Inputs []string `json:"inputs,omitempty"`
	Rules  []Rules  `json:"rules"`
}

OperationRuleSpecInference defines the desired state of OperationRule +k8s:openapi-gen=true

func (*OperationRuleSpecInference) DeepCopy

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

func (*OperationRuleSpecInference) DeepCopyInto

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

type OperationRuleSpecType

type OperationRuleSpecType struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:",inline,omitempty"`
}

OperationRuleSpecType defines the desired state of OperationRule +k8s:openapi-gen=true

func (*OperationRuleSpecType) DeepCopy

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

func (*OperationRuleSpecType) DeepCopyInto

func (in *OperationRuleSpecType) DeepCopyInto(out *OperationRuleSpecType)

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

type OperationRuleStatus

type OperationRuleStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	RouteHost string `json:"routeHost,omitempty"`
}

OperationRuleStatus defines the observed state of OperationRule +k8s:openapi-gen=true

func (*OperationRuleStatus) DeepCopy

func (in *OperationRuleStatus) DeepCopy() *OperationRuleStatus

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

func (*OperationRuleStatus) DeepCopyInto

func (in *OperationRuleStatus) DeepCopyInto(out *OperationRuleStatus)

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

type OutputType

type OutputType struct {
	Type string `json:"type"`
}

+k8s:openapi-gen=true

func (*OutputType) DeepCopy

func (in *OutputType) DeepCopy() *OutputType

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

func (*OutputType) DeepCopyInto

func (in *OutputType) DeepCopyInto(out *OutputType)

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

type PlatformService

type PlatformService interface {
	Create(ctx context.Context, obj runtime.Object) error
	Delete(ctx context.Context, obj runtime.Object, opts ...client.DeleteOption) error
	Get(ctx context.Context, key client.ObjectKey, obj runtime.Object) error
	List(ctx context.Context, list runtime.Object, opts client.ListOption) error
	Update(ctx context.Context, obj runtime.Object) error
	GetCached(ctx context.Context, key client.ObjectKey, obj runtime.Object) error
	GetDiscoveryClient() *discovery.DiscoveryClient
	GetScheme() *runtime.Scheme
	IsMockService() bool
}

PlatformService ...

type Rules

type Rules struct {
	When []string   `json:"when"`
	Then []Variable `json:"then"`
}

+k8s:openapi-gen=true

func (*Rules) DeepCopy

func (in *Rules) DeepCopy() *Rules

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

func (*Rules) DeepCopyInto

func (in *Rules) DeepCopyInto(out *Rules)

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

type Variable

type Variable struct {
	Name  string            `json:"name,omitempty"`
	Path  string            `json:"path,omitempty"`
	Value map[string]string `json:"value,omitempty"`
}

+k8s:openapi-gen=true

func (*Variable) DeepCopy

func (in *Variable) DeepCopy() *Variable

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

func (*Variable) DeepCopyInto

func (in *Variable) DeepCopyInto(out *Variable)

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