v1

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the keti v1 API group +k8s:deepcopy-gen=package,register +groupName=keti.policy

Package v1 contains API Schema definitions for the keti v1 API group +k8s:deepcopy-gen=package,register +groupName=keti.policy

Index

Constants

View Source
const (
	PreCopy  = MAlgorithm("preCopy")
	PostCopy = MAlgorithm("postCopy")
)
View Source
const (
	GroupName    = "keti.policy"
	GroupVersion = "v1"
)

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion}
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type MAlgorithm added in v0.0.8

type MAlgorithm string

type MProperty

type MProperty int
const (
	Memory MProperty = 1 + iota
	Storage
	Both
	None
)

func (MProperty) String

func (m MProperty) String() string

type PodPolicy

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

	Spec PodPolicySpec `json:"spec,omitempty"`
}

PodPolicy is the Schema for the podpolicies API +kubebuilder:subresource:status +kubebuilder:resource:path=podpolicies,scope=Namespaced

func (*PodPolicy) DeepCopy

func (in *PodPolicy) DeepCopy() *PodPolicy

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

func (*PodPolicy) DeepCopyInto

func (in *PodPolicy) DeepCopyInto(out *PodPolicy)

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

func (*PodPolicy) DeepCopyObject

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

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

type PodPolicyList

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

PodPolicyList contains a list of PodPolicy

func (*PodPolicyList) DeepCopy

func (in *PodPolicyList) DeepCopy() *PodPolicyList

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

func (*PodPolicyList) DeepCopyInto

func (in *PodPolicyList) DeepCopyInto(out *PodPolicyList)

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

func (*PodPolicyList) DeepCopyObject

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

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

type PodPolicySpec

type PodPolicySpec struct {
	ClusterName        string
	PodName            string
	MigrationPod       bool
	MigrationProperty  MProperty
	MigrationAlgorithm MAlgorithm
	IsSystemPod        bool
	GeoMode            bool
	Anything           bool
}

PodPolicySpec defines the desired state of PodPolicy

func (*PodPolicySpec) DeepCopy

func (in *PodPolicySpec) DeepCopy() *PodPolicySpec

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

func (*PodPolicySpec) DeepCopyInto

func (in *PodPolicySpec) DeepCopyInto(out *PodPolicySpec)

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