v3

package
v1.4.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KindBlockAffinity     = "BlockAffinity"
	KindBlockAffinityList = "BlockAffinityList"
)

Variables

View Source
var (
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "crd.projectcalico.org", Version: "v1"}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type BlockAffinity

type BlockAffinity struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Specification of the BlockAffinity.
	Spec BlockAffinitySpec `json:"spec,omitempty"`
}

BlockAffinity maintains a block affinity's state

func NewBlockAffinity

func NewBlockAffinity() *BlockAffinity

NewBlockAffinity creates a new (zeroed) BlockAffinity struct with the TypeMetadata initialised to the current version.

func (*BlockAffinity) DeepCopy

func (in *BlockAffinity) DeepCopy() *BlockAffinity

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

func (*BlockAffinity) DeepCopyInto

func (in *BlockAffinity) DeepCopyInto(out *BlockAffinity)

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

func (*BlockAffinity) DeepCopyObject

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

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

type BlockAffinityList

type BlockAffinityList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []BlockAffinity `json:"items"`
}

BlockAffinityList contains a list of BlockAffinity resources.

func NewBlockAffinityList

func NewBlockAffinityList() *BlockAffinityList

NewBlockAffinityList creates a new (zeroed) BlockAffinityList struct with the TypeMetadata initialised to the current version.

func (*BlockAffinityList) DeepCopy

func (in *BlockAffinityList) DeepCopy() *BlockAffinityList

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

func (*BlockAffinityList) DeepCopyInto

func (in *BlockAffinityList) DeepCopyInto(out *BlockAffinityList)

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

func (*BlockAffinityList) DeepCopyObject

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

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

type BlockAffinitySpec

type BlockAffinitySpec struct {
	State string `json:"state"`
	Node  string `json:"node"`
	CIDR  string `json:"cidr"`

	// Deleted indicates that this block affinity is being deleted.
	// This field is a string for compatibility with older releases that
	// mistakenly treat this field as a string.
	Deleted string `json:"deleted"`
}

BlockAffinitySpec contains the specification for a BlockAffinity resource.

Jump to

Keyboard shortcuts

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