v1alpha1

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package v1alpha1 describes the structure of the Telemetry Policy CRD.

Index

Constants

View Source
const (
	Plural  = "taspolicies"
	Group   = "telemetry.intel.com"
	Version = "v1alpha1"
)

Defines key values for policy CRD.

Variables

This section is empty.

Functions

This section is empty.

Types

type TASPolicy

type TASPolicy struct {
	Status            TASPolicyStatus `json:"status,omitempty"`
	Spec              TASPolicySpec   `json:"spec"`
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
}

TASPolicy is the Schema for the taspolicies API.

func (*TASPolicy) DeepCopy

func (in *TASPolicy) DeepCopy() *TASPolicy

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

func (*TASPolicy) DeepCopyInto

func (in *TASPolicy) DeepCopyInto(out *TASPolicy)

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

func (*TASPolicy) DeepCopyObject

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

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

type TASPolicyList

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

TASPolicyList contains a list of TASpolicy.

func (*TASPolicyList) DeepCopy

func (in *TASPolicyList) DeepCopy() *TASPolicyList

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

func (*TASPolicyList) DeepCopyInto

func (in *TASPolicyList) DeepCopyInto(out *TASPolicyList)

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

func (*TASPolicyList) DeepCopyObject

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

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

type TASPolicyRule

type TASPolicyRule struct {
	Metricname string   `json:"metricname"`
	Operator   string   `json:"operator"`
	Labels     []string `json:"labels,omitempty"`
	Target     int64    `json:"target"`
}

TASPolicyRule contains the parameters for the strategy rule.

type TASPolicySpec

type TASPolicySpec struct {
	Strategies map[string]TASPolicyStrategy `json:"strategies"`
}

TASPolicySpec is a map of strategies indexed by their strategy type name i.e. scheduleonmetric, dontschedule.

func (*TASPolicySpec) DeepCopy

func (in *TASPolicySpec) DeepCopy() *TASPolicySpec

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

func (*TASPolicySpec) DeepCopyInto

func (in *TASPolicySpec) DeepCopyInto(out *TASPolicySpec)

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

type TASPolicyStatus

type TASPolicyStatus struct {
}

TASPolicyStatus defines the observed state of TASpolicy. Currently no status object is implemented. TODO: Implement policy status object.

func (*TASPolicyStatus) DeepCopy

func (in *TASPolicyStatus) DeepCopy() *TASPolicyStatus

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

func (*TASPolicyStatus) DeepCopyInto

func (in *TASPolicyStatus) DeepCopyInto(out *TASPolicyStatus)

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

type TASPolicyStrategy

type TASPolicyStrategy struct {
	PolicyName      string          `json:"policyName"`
	LogicalOperator string          `json:"logicalOperator,omitempty"`
	Rules           []TASPolicyRule `json:"rules"`
}

TASPolicyStrategy contains a set of TASPolicyRule which define the strategy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL