v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: intents.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

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 Intent

type Intent struct {
	metaV1.TypeMeta   `json:",inline"`
	metaV1.ObjectMeta `json:"metadata,omitempty"`

	Spec IntentSpec `json:"spec"`
}

Intent kind definition.

func (*Intent) DeepCopy

func (in *Intent) DeepCopy() *Intent

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

func (*Intent) DeepCopyInto

func (in *Intent) DeepCopyInto(out *Intent)

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

func (*Intent) DeepCopyObject

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

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

type KPIProfileStatus struct {
	Resolved bool   `json:"resolved"`
	Reason   string `json:"reason"`
}

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

type TargetRef struct {
	Kind string `json:"kind"`
	Name string `json:"name"`
}

TargetRef represent the data needed to find the related object.

func (*TargetRef) DeepCopy

func (in *TargetRef) DeepCopy() *TargetRef

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

func (*TargetRef) DeepCopyInto

func (in *TargetRef) DeepCopyInto(out *TargetRef)

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