v1

package
v0.0.0-...-a173ea1 Latest Latest
Warning

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

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

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=aci.qos

Index

Constants

This section is empty.

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: qos.GroupName, Version: "v1"}

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 PodSelector

type PodSelector struct {
	Labels    map[string]string `json:"labels,omitempty"`
	Namespace string            `json:"namespace,omitempty"`
}

func (*PodSelector) DeepCopy

func (in *PodSelector) DeepCopy() *PodSelector

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

func (*PodSelector) DeepCopyInto

func (in *PodSelector) DeepCopyInto(out *PodSelector)

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

type PolicingType

type PolicingType struct {
	// +kubebuilder:validation:Minimum=0
	// +optional
	PolicingRate int `json:"policing_rate,omitempty"`
	// +kubebuilder:validation:Minimum=0
	// +optional
	PolicingBurst int `json:"policing_burst,omitempty"`
}

PolicingType

func (*PolicingType) DeepCopy

func (in *PolicingType) DeepCopy() *PolicingType

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

func (*PolicingType) DeepCopyInto

func (in *PolicingType) DeepCopyInto(out *PolicingType)

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

type PolicyState

type PolicyState string
const (
	Ready  PolicyState = "Ready"
	Failed PolicyState = "Failed"
)

type QosPolicy

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

	Spec   QosPolicySpec   `json:"spec,omitempty"`
	Status QosPolicyStatus `json:"status,omitempty"`
}

Policy is the Schema for the qospolicies API

func (*QosPolicy) DeepCopy

func (in *QosPolicy) DeepCopy() *QosPolicy

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

func (*QosPolicy) DeepCopyInto

func (in *QosPolicy) DeepCopyInto(out *QosPolicy)

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

func (*QosPolicy) DeepCopyObject

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

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

type QosPolicyList

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

QosPolicyList contains a list of QosPolicy

func (*QosPolicyList) DeepCopy

func (in *QosPolicyList) DeepCopy() *QosPolicyList

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

func (*QosPolicyList) DeepCopyInto

func (in *QosPolicyList) DeepCopyInto(out *QosPolicyList)

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

func (*QosPolicyList) DeepCopyObject

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

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

type QosPolicySpec

type QosPolicySpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	Selector PodSelector  `json:"selector,omitempty"`
	Ingress  PolicingType `json:"ingress,omitempty"`
	Egress   PolicingType `json:"egress,omitempty"`
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=63
	// +kubebuilder:default:=0
	// +optional
	Mark int `json:"dscpmark,omitempty"`
}

QosPolicySpec defines the desired state of QosPolicy

func (*QosPolicySpec) DeepCopy

func (in *QosPolicySpec) DeepCopy() *QosPolicySpec

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

func (*QosPolicySpec) DeepCopyInto

func (in *QosPolicySpec) DeepCopyInto(out *QosPolicySpec)

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

type QosPolicyStatus

type QosPolicyStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file7
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	State PolicyState `json:"state"`
}

QosPolicyStatus defines the observed state of QosPolicy

func (*QosPolicyStatus) DeepCopy

func (in *QosPolicyStatus) DeepCopy() *QosPolicyStatus

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

func (*QosPolicyStatus) DeepCopyInto

func (in *QosPolicyStatus) DeepCopyInto(out *QosPolicyStatus)

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