v1alpha1

package
v0.0.0-...-6a8a225 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=snapshotmanager.ciscosso.io

Index

Constants

View Source
const (
	ValidationStrategyResource       = "ValidationStrategy"
	ValidationStrategyResourcePlural = "ValidationStrategies"
	ValidationRunResource            = "ValidationRun"
	ValidationRunResourcePlural      = "ValidationRuns"
	SnapshotRevertResource           = "SnapshotRevert"
	SnapshotRevertResourcePlural     = "SnapshotReverts"
)

Variables

View Source
var (
	// Variables referenced in generation
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: controller.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Hooks

type Hooks struct {
	Init          *batchv1.JobSpec `json:"init,omitempty"`
	PreValidation *batchv1.JobSpec `json:"preValidation,omitempty"`
	Validation    *batchv1.JobSpec `json:"validation,omitempty"`
}

Hooks

func (*Hooks) DeepCopy

func (in *Hooks) DeepCopy() *Hooks

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

func (*Hooks) DeepCopyInto

func (in *Hooks) DeepCopyInto(out *Hooks)

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

type Kustomization

type Kustomization struct {
	NamePrefix        string            `json:"namePrefix,omitempty"`
	CommonLabels      map[string]string `json:"commonLabels,omitempty"`
	CommonAnnotations map[string]string `json:"commonAnnotations,omitempty"`
	Patches           map[string]string `json:"patches",omitempty`
}

Kustomization

func (*Kustomization) DeepCopy

func (in *Kustomization) DeepCopy() *Kustomization

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

func (*Kustomization) DeepCopyInto

func (in *Kustomization) DeepCopyInto(out *Kustomization)

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

type ResourceName

type ResourceName struct {
	Group   string `json:"group,omitempty"`
	Version string `json:"version,omitempty"`
	Kind    string `json:"kind,omitempty"`
	Name    string `json:"name"`
}

Resource

func (*ResourceName) DeepCopy

func (in *ResourceName) DeepCopy() *ResourceName

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

func (*ResourceName) DeepCopyInto

func (in *ResourceName) DeepCopyInto(out *ResourceName)

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

func (*ResourceName) Id

func (r *ResourceName) Id() string

type SnapshotRevert

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

	Spec   SnapshotRevertSpec   `json:"spec"`
	Status SnapshotRevertStatus `json:"status"`
}

SnapshotRevert

func (*SnapshotRevert) AttachSnapshot

func (*SnapshotRevert) DeepCopy

func (in *SnapshotRevert) DeepCopy() *SnapshotRevert

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

func (*SnapshotRevert) DeepCopyInto

func (in *SnapshotRevert) DeepCopyInto(out *SnapshotRevert)

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

func (*SnapshotRevert) DeepCopyObject

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

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

type SnapshotRevertAction

type SnapshotRevertAction struct {
	Type     string       `json:"type"`
	FromTime *metav1.Time `json:"fromTime,omitempty"`
	ToTime   *metav1.Time `json:"toTime,omitempty"`
}

SnapshotRevertAction

func (*SnapshotRevertAction) DeepCopy

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

func (*SnapshotRevertAction) DeepCopyInto

func (in *SnapshotRevertAction) DeepCopyInto(out *SnapshotRevertAction)

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

type SnapshotRevertDetails

type SnapshotRevertDetails struct {
	State     string                          `json:"state"`
	Replicas  *int32                          `json:"replicas,omitempty"`
	OldClaims []*corev1.PersistentVolumeClaim `json:"oldClaims,omitempty"`
}

SnapshotRevertDetails

func (*SnapshotRevertDetails) DeepCopy

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

func (*SnapshotRevertDetails) DeepCopyInto

func (in *SnapshotRevertDetails) DeepCopyInto(out *SnapshotRevertDetails)

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

type SnapshotRevertList

type SnapshotRevertList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

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

ValidationStrategyList

func (*SnapshotRevertList) DeepCopy

func (in *SnapshotRevertList) DeepCopy() *SnapshotRevertList

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

func (*SnapshotRevertList) DeepCopyInto

func (in *SnapshotRevertList) DeepCopyInto(out *SnapshotRevertList)

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

func (*SnapshotRevertList) DeepCopyObject

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

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

type SnapshotRevertSpec

type SnapshotRevertSpec struct {
	StsType *StatefulSetType `json:"statefulSet,omitempty"`

	Validation *string              `json:"validation,omitempty"`
	Action     SnapshotRevertAction `json:"action"`
	KeepStatus int                  `json:"keepStatus"`
}

SnapshotRevertSpec

func (*SnapshotRevertSpec) DeepCopy

func (in *SnapshotRevertSpec) DeepCopy() *SnapshotRevertSpec

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

func (*SnapshotRevertSpec) DeepCopyInto

func (in *SnapshotRevertSpec) DeepCopyInto(out *SnapshotRevertSpec)

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

type SnapshotRevertStatus

type SnapshotRevertStatus struct {
	Reverts []SnapshotRevertDetails `json:"reverts,omitempty"`
}

SnapshotRevertStatus

func (*SnapshotRevertStatus) DeepCopy

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

func (*SnapshotRevertStatus) DeepCopyInto

func (in *SnapshotRevertStatus) DeepCopyInto(out *SnapshotRevertStatus)

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

type StatefulSetType

type StatefulSetType struct {
	Name                      string  `json:"name"`
	Claim                     string  `json:"claim"`
	SnapshotClaimStorageClass *string `json:"snapshotClaimStorageClass,omitempty"`
}

StetfulSetStrategy

func (*StatefulSetType) DeepCopy

func (in *StatefulSetType) DeepCopy() *StatefulSetType

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

func (*StatefulSetType) DeepCopyInto

func (in *StatefulSetType) DeepCopyInto(out *StatefulSetType)

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

type ValidationRun

type ValidationRun struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ValidationRunSpec   `json:"spec"`
	Status            ValidationRunStatus `json:"status"`
}

ValidationRun

func (*ValidationRun) DeepCopy

func (in *ValidationRun) DeepCopy() *ValidationRun

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

func (*ValidationRun) DeepCopyInto

func (in *ValidationRun) DeepCopyInto(out *ValidationRun)

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

func (*ValidationRun) DeepCopyObject

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

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

type ValidationRunList

type ValidationRunList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

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

ValidationRunList

func (*ValidationRunList) DeepCopy

func (in *ValidationRunList) DeepCopy() *ValidationRunList

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

func (*ValidationRunList) DeepCopyInto

func (in *ValidationRunList) DeepCopyInto(out *ValidationRunList)

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

func (*ValidationRunList) DeepCopyObject

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

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

type ValidationRunObjects

type ValidationRunObjects struct {
	Claims     []corev1.PersistentVolumeClaim `json:"claims"`
	Kustomized []string                       `json:"rest"`
}

func (*ValidationRunObjects) DeepCopy

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

func (*ValidationRunObjects) DeepCopyInto

func (in *ValidationRunObjects) DeepCopyInto(out *ValidationRunObjects)

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

type ValidationRunSpec

type ValidationRunSpec struct {
	Suffix            string               `json:"suffix"`
	ClaimsToSnapshots map[string]string    `json:"claimsToSnapshots"`
	Cleanup           bool                 `json:"cleanup"`
	Objects           ValidationRunObjects `json:"objects"`
}

ValidationRunSpec

func (*ValidationRunSpec) DeepCopy

func (in *ValidationRunSpec) DeepCopy() *ValidationRunSpec

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

func (*ValidationRunSpec) DeepCopyInto

func (in *ValidationRunSpec) DeepCopyInto(out *ValidationRunSpec)

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

type ValidationRunStatus

type ValidationRunStatus struct {
	KustStarted           *metav1.Time `json:"kustStarted,omitempty"`
	KustFinished          *metav1.Time `json:"kustFinished,omitempty"`
	InitStarted           *metav1.Time `json:"initStarted,omitempty"`
	InitFinished          *metav1.Time `json:"initFinished,omitempty"`
	PreValidationStarted  *metav1.Time `json:"preValidationStarted,omitempty"`
	PreValidationFinished *metav1.Time `json:"preValidationFinished,omitempty"`
	ValidationStarted     *metav1.Time `json:"validationStarted,omitempty"`
	ValidationFinished    *metav1.Time `json:"validationFinished,omitempty"`
	CleanupStarted        *metav1.Time `json:"cleanupStarted,omitempty"`
	CleanupFinished       *metav1.Time `json:"cleanupFinished,omitempty"`
}

ValidationRunStatus

func (*ValidationRunStatus) DeepCopy

func (in *ValidationRunStatus) DeepCopy() *ValidationRunStatus

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

func (*ValidationRunStatus) DeepCopyInto

func (in *ValidationRunStatus) DeepCopyInto(out *ValidationRunStatus)

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

type ValidationStrategy

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

	Spec   ValidationStrategySpec   `json:"spec"`
	Status ValidationStrategyStatus `json:"status"`
}

ValidationStrategy

func (*ValidationStrategy) DeepCopy

func (in *ValidationStrategy) DeepCopy() *ValidationStrategy

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

func (*ValidationStrategy) DeepCopyInto

func (in *ValidationStrategy) DeepCopyInto(out *ValidationStrategy)

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

func (*ValidationStrategy) DeepCopyObject

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

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

func (ValidationStrategy) GetKustResources

func (vs ValidationStrategy) GetKustResources() []ResourceName

func (ValidationStrategy) KustomizeClaims

type ValidationStrategyList

type ValidationStrategyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

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

ValidationStrategyList

func (*ValidationStrategyList) DeepCopy

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

func (*ValidationStrategyList) DeepCopyInto

func (in *ValidationStrategyList) DeepCopyInto(out *ValidationStrategyList)

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

func (*ValidationStrategyList) DeepCopyObject

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

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

type ValidationStrategySpec

type ValidationStrategySpec struct {
	StsType *StatefulSetType `json:"statefulSet,omitempty"`

	AdditionalResources []ResourceName `json:"additionalResources"`
	Kustomization       Kustomization  `json:"kustomization"`
	Hooks               *Hooks         `json:"hooks,omitempty"`
	AutoTrigger         bool           `json:"autoTrigger"`
}

ValidationStrategySpec

func (*ValidationStrategySpec) DeepCopy

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

func (*ValidationStrategySpec) DeepCopyInto

func (in *ValidationStrategySpec) DeepCopyInto(out *ValidationStrategySpec)

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

type ValidationStrategyStatus

type ValidationStrategyStatus struct {
	// contains filtered or unexported fields
}

ValidationStrategyStatus

func (*ValidationStrategyStatus) DeepCopy

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

func (*ValidationStrategyStatus) DeepCopyInto

func (in *ValidationStrategyStatus) DeepCopyInto(out *ValidationStrategyStatus)

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