Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: intents.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Intent ¶
type Intent struct { metaV1.TypeMeta `json:",inline"` metaV1.ObjectMeta `json:"metadata,omitempty"` Spec IntentSpec `json:"spec"` }
Intent kind definition.
func (*Intent) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Intent.
func (*Intent) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Intent) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IntentList ¶
type IntentList struct { metaV1.TypeMeta `json:",inline"` metaV1.ListMeta `json:"metadata"` Items []Intent `json:"items"` }
IntentList is a list of Intent resources.
func (*IntentList) DeepCopy ¶
func (in *IntentList) DeepCopy() *IntentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntentList.
func (*IntentList) DeepCopyInto ¶
func (in *IntentList) DeepCopyInto(out *IntentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IntentList) DeepCopyObject ¶
func (in *IntentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IntentSpec ¶
type IntentSpec struct { TargetRef TargetRef `json:"targetRef"` Priority float64 `json:"priority"` Objectives []TargetObjective `json:"objectives"` }
IntentSpec represent the actual Intent spec.
func (*IntentSpec) DeepCopy ¶
func (in *IntentSpec) DeepCopy() *IntentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntentSpec.
func (*IntentSpec) DeepCopyInto ¶
func (in *IntentSpec) DeepCopyInto(out *IntentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KPIProfile ¶
type KPIProfile struct { metaV1.TypeMeta `json:",inline"` metaV1.ObjectMeta `json:"metadata,omitempty"` Spec KPIProfileSpec `json:"spec"` Status KPIProfileStatus `json:"status"` }
KPIProfile for KPI kind definition.
func (*KPIProfile) DeepCopy ¶
func (in *KPIProfile) DeepCopy() *KPIProfile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KPIProfile.
func (*KPIProfile) DeepCopyInto ¶
func (in *KPIProfile) DeepCopyInto(out *KPIProfile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KPIProfile) DeepCopyObject ¶
func (in *KPIProfile) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KPIProfileList ¶
type KPIProfileList struct { metaV1.TypeMeta `json:",inline"` metaV1.ListMeta `json:"metadata"` Items []KPIProfile `json:"items"` }
KPIProfileList is a list of KPIProfile resources.
func (*KPIProfileList) DeepCopy ¶
func (in *KPIProfileList) DeepCopy() *KPIProfileList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KPIProfileList.
func (*KPIProfileList) DeepCopyInto ¶
func (in *KPIProfileList) DeepCopyInto(out *KPIProfileList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KPIProfileList) DeepCopyObject ¶
func (in *KPIProfileList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KPIProfileSpec ¶
type KPIProfileSpec struct { Query string `json:"query"` Description string `json:"description"` KPIType string `json:"type"` Props map[string]string `json:"props"` }
KPIProfileSpec represent the actual KPIProfile spec.
func (*KPIProfileSpec) DeepCopy ¶
func (in *KPIProfileSpec) DeepCopy() *KPIProfileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KPIProfileSpec.
func (*KPIProfileSpec) DeepCopyInto ¶
func (in *KPIProfileSpec) DeepCopyInto(out *KPIProfileSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KPIProfileStatus ¶
KPIProfileStatus represent the status object.
func (*KPIProfileStatus) DeepCopy ¶
func (in *KPIProfileStatus) DeepCopy() *KPIProfileStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KPIProfileStatus.
func (*KPIProfileStatus) DeepCopyInto ¶
func (in *KPIProfileStatus) DeepCopyInto(out *KPIProfileStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TargetObjective ¶
type TargetObjective struct { Name string `json:"name"` Value float64 `json:"value"` MeasuredBy string `json:"measuredBy"` }
TargetObjective represent the actual objective.
func (*TargetObjective) DeepCopy ¶
func (in *TargetObjective) DeepCopy() *TargetObjective
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetObjective.
func (*TargetObjective) DeepCopyInto ¶
func (in *TargetObjective) DeepCopyInto(out *TargetObjective)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TargetRef ¶
TargetRef represent the data needed to find the related object.
func (*TargetRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetRef.
func (*TargetRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.