v1alpha

package
v1.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

Create a SchemeBuilder which uses functions to add types to the scheme

View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   selectivedeployment.GroupName,
	Version: "v1alpha",
}

SchemeGroupVersion is the identifier for the API which includes the name of the group and the version of the API

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource handles adding types to the schemes

Types

type Controller

type Controller struct {
	Type string `json:"type"`
	Name string `json:"name"`
}

Controller indicates deployment, daemonset or statefulsets and their names

func (*Controller) DeepCopy

func (in *Controller) DeepCopy() *Controller

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

func (*Controller) DeepCopyInto

func (in *Controller) DeepCopyInto(out *Controller)

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

type Crash

type Crash struct {
	Controller Controller `json:"controller"`
	Reason     string     `json:"reason"`
}

Crash is the list of controllers that the object cannot take them under control

func (*Crash) DeepCopy

func (in *Crash) DeepCopy() *Crash

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

func (*Crash) DeepCopyInto

func (in *Crash) DeepCopyInto(out *Crash)

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

type SelectiveDeployment

type SelectiveDeployment struct {
	// TypeMeta is the metadata for the resource, like kind and apiversion
	meta_v1.TypeMeta `json:",inline"`
	// ObjectMeta contains the metadata for the particular object, including
	meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// Spec is the selectivedeployment resource spec
	Spec SelectiveDeploymentSpec `json:"spec"`
	// Status is the selectivedeployment resource status
	Status SelectiveDeploymentStatus `json:"status,omitempty"`
}

SelectiveDeployment describes a SelectiveDeployment resource

func (*SelectiveDeployment) DeepCopy

func (in *SelectiveDeployment) DeepCopy() *SelectiveDeployment

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

func (*SelectiveDeployment) DeepCopyInto

func (in *SelectiveDeployment) DeepCopyInto(out *SelectiveDeployment)

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

func (*SelectiveDeployment) DeepCopyObject

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

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

type SelectiveDeploymentList

type SelectiveDeploymentList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`

	Items []SelectiveDeployment `json:"items"`
}

SelectiveDeploymentList is a list of SelectiveDeployment resources

func (*SelectiveDeploymentList) DeepCopy

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

func (*SelectiveDeploymentList) DeepCopyInto

func (in *SelectiveDeploymentList) DeepCopyInto(out *SelectiveDeploymentList)

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

func (*SelectiveDeploymentList) DeepCopyObject

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

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

type SelectiveDeploymentSpec

type SelectiveDeploymentSpec struct {
	// The controller indicates the name and type of controller desired to configure
	// Controllers: deployment, daemonset, and statefulsets
	// The type is for defining which kind of selectivedeployment it is, you could find the list of active types below.
	// Types: city, state, country, continent, and polygon
	// The value represents the desired filter and it must be compatible with the type of selectivedeployment
	Controller []Controller `json:"controller"`
	Type       string       `json:"type"`
	Selector   []Selector   `json:"selector"`
}

SelectiveDeploymentSpec is the spec for a SelectiveDeployment resource

func (*SelectiveDeploymentSpec) DeepCopy

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

func (*SelectiveDeploymentSpec) DeepCopyInto

func (in *SelectiveDeploymentSpec) DeepCopyInto(out *SelectiveDeploymentSpec)

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

type SelectiveDeploymentStatus

type SelectiveDeploymentStatus struct {
	Ready   string  `json:"ready"`
	State   string  `json:"state"`
	Message string  `json:"message"`
	Crash   []Crash `json:"crash"`
}

SelectiveDeploymentStatus is the status for a SelectiveDeployment resource

func (*SelectiveDeploymentStatus) DeepCopy

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

func (*SelectiveDeploymentStatus) DeepCopyInto

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

type Selector

type Selector struct {
	Value    string `json:"value"`
	Operator string `json:"operator"`
	Count    int    `json:"count"`
}

Selector to define desired node filtering parameters

func (*Selector) DeepCopy

func (in *Selector) DeepCopy() *Selector

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

func (*Selector) DeepCopyInto

func (in *Selector) DeepCopyInto(out *Selector)

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