pkg

package
v0.2.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

+kubebuilder:object:generate=true +groupName=chaosapps.metamagical.io

Index

Constants

This section is empty.

Variables

View Source
var (

	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "chaosapps.metamagical.io", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme is required by pkg/client/...
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ChaosPod

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

	Spec   ChaosPodSpec   `json:"spec,omitempty"`
	Status ChaosPodStatus `json:"status,omitempty"`
}

ChaosPod is the Schema for the randomjobs API +kubebuilder:printcolumn:name="next stop",type="string",JSONPath=".spec.nextStop",format="date" +kubebuilder:printcolumn:name="last run",type="string",JSONPath=".status.lastRun",format="date"

func (*ChaosPod) DeepCopy

func (c *ChaosPod) DeepCopy() *ChaosPod

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

func (*ChaosPod) DeepCopyInto

func (c *ChaosPod) DeepCopyInto(out *ChaosPod)

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

func (*ChaosPod) DeepCopyObject

func (c *ChaosPod) DeepCopyObject() runtime.Object

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

func (*ChaosPod) Default

func (c *ChaosPod) Default()

Default implements webhookutil.defaulter so a webhook will be registered for the type

func (*ChaosPod) ValidateCreate

func (c *ChaosPod) ValidateCreate() error

ValidateCreate implements webhookutil.validator so a webhook will be registered for the type

func (*ChaosPod) ValidateUpdate

func (c *ChaosPod) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhookutil.validator so a webhook will be registered for the type

type ChaosPodList

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

ChaosPodList contains a list of ChaosPod

func (*ChaosPodList) DeepCopy

func (in *ChaosPodList) DeepCopy() *ChaosPodList

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

func (*ChaosPodList) DeepCopyInto

func (in *ChaosPodList) DeepCopyInto(out *ChaosPodList)

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

func (*ChaosPodList) DeepCopyObject

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

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

type ChaosPodSpec

type ChaosPodSpec struct {
	Template corev1.PodTemplateSpec `json:"template"`
	// +optional
	NextStop metav1.Time `json:"nextStop,omitempty"`
}

ChaosPodSpec defines the desired state of ChaosPod

func (*ChaosPodSpec) DeepCopy

func (in *ChaosPodSpec) DeepCopy() *ChaosPodSpec

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

func (*ChaosPodSpec) DeepCopyInto

func (in *ChaosPodSpec) DeepCopyInto(out *ChaosPodSpec)

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

type ChaosPodStatus

type ChaosPodStatus struct {
	LastRun metav1.Time `json:"lastRun,omitempty"`
}

ChaosPodStatus defines the observed state of ChaosPod. It should always be reconstructable from the state of the cluster and/or outside world.

func (*ChaosPodStatus) DeepCopy

func (in *ChaosPodStatus) DeepCopy() *ChaosPodStatus

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

func (*ChaosPodStatus) DeepCopyInto

func (in *ChaosPodStatus) DeepCopyInto(out *ChaosPodStatus)

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