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 ¶
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- type Action
- type OperationRule
- type OperationRuleList
- type OperationRuleSpec
- type OperationRuleSpecInference
- type OperationRuleSpecType
- type OperationRuleStatus
- type OutputType
- type PlatformService
- type Rules
- type Variable
Constants ¶
This section is empty.
Variables ¶
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 ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
Types ¶
type Action ¶
type Action struct {
Output []Variable `json:"output"`
}
+k8s:openapi-gen=true
func (*Action) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Action.
func (*Action) DeepCopyInto ¶
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 ¶
func (in *OperationRuleSpecInference) DeepCopy() *OperationRuleSpecInference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperationRuleSpecInference.
func (*OperationRuleSpecInference) DeepCopyInto ¶
func (in *OperationRuleSpecInference) DeepCopyInto(out *OperationRuleSpecInference)
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 ¶
func (in *OperationRuleSpecType) DeepCopy() *OperationRuleSpecType
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 ¶
+k8s:openapi-gen=true
func (*Rules) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rules.
func (*Rules) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variable.
func (*Variable) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.