v1alpha1

package
v0.0.0-...-8531fef Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the terraform v1alpha1 API group +k8s:deepcopy-gen=package,register +k8s:openapi-gen=true +groupName=backend.terraform.io

Package v1alpha1 contains API Schema definitions for the terraform v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=terraform.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "backend.terraform.io", Version: "v1alpha1"}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type DepSpec

type DepSpec struct {
	// Dependency kind
	// +kubebuilder:validation:Enum={"Backend","Module","Provider"}
	Kind string `json:"kind"`
	// Dependency name
	Name string `json:"name"`
	// Dependency type
	// +kubebuilder:validation:Enum={"EtcdV3","GCS","GoogleStorageBucket","GoogleStorageBucketIAMMember","Google"}
	Type string `json:"type"`
}

+kubebuilder:subresource:status DepSpec defines the dependency list

func (*DepSpec) DeepCopy

func (in *DepSpec) DeepCopy() *DepSpec

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

func (*DepSpec) DeepCopyInto

func (in *DepSpec) DeepCopyInto(out *DepSpec)

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

type EtcdV3

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

	Spec   EtcdV3Spec `json:"spec,omitempty"`
	Dep    []DepSpec  `json:"dep,omitempty"`
	Status StatusSpec `json:"status,omitempty"`
}

+genclient +genclient:nonNamespaced +genclient:skipVerbs=updateStatus +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:path="etcdv3s",singular="etcdv3",scope="Namespaced",shortName="etcdv3" +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.state",description="Description of the current state" +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase",description="Description of the current phase" Etcdv3 is the Schema for the Etcdv3s API

func (*EtcdV3) DeepCopy

func (in *EtcdV3) DeepCopy() *EtcdV3

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

func (*EtcdV3) DeepCopyInto

func (in *EtcdV3) DeepCopyInto(out *EtcdV3)

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

func (*EtcdV3) DeepCopyObject

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

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

type EtcdV3List

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

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true Etcdv3List contains a list of Etcdv3

func (*EtcdV3List) DeepCopy

func (in *EtcdV3List) DeepCopy() *EtcdV3List

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

func (*EtcdV3List) DeepCopyInto

func (in *EtcdV3List) DeepCopyInto(out *EtcdV3List)

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

func (*EtcdV3List) DeepCopyObject

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

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

type EtcdV3Spec

type EtcdV3Spec struct {
	// EtcdV3 Etcdv3 endpoints
	// +optional
	Endpoints []string `json:"endpoints,omitempty"`
	// EtcdV3 backend lock
	// +optional
	Lock bool `json:"lock,omitempty"`
	// EtcdV3 backend prefix
	// +optional
	Prefix string `json:"prefix,omitempty"`
	// EtcdV3 backend cacert path
	// +optional
	CacertPath string `json:"cacert_path,omitempty"`
	// EtcdV3 backend cert path
	// +optional
	CertPath string `json:"cert_path,omitempty"`
	// EtcdV3 backend key path
	// +optional
	KeyPath string `json:"key_path,omitempty"`
}

+kubebuilder:subresource:status Etcdv3Spec defines the desired state of Etcdv3

func (*EtcdV3Spec) DeepCopy

func (in *EtcdV3Spec) DeepCopy() *EtcdV3Spec

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

func (*EtcdV3Spec) DeepCopyInto

func (in *EtcdV3Spec) DeepCopyInto(out *EtcdV3Spec)

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

type GCS

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

	Spec   GCSSpec    `json:"spec,omitempty"`
	Dep    []DepSpec  `json:"dep,omitempty"`
	Status StatusSpec `json:"status,omitempty"`
}

+genclient +genclient:nonNamespaced +genclient:skipVerbs=updateStatus +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:path="gcs",singular="gcs",scope="Namespaced",shortName="gcs" +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.state",description="Description of the current state" +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase",description="Description of the current phase" GCS is the Schema for the GCS's API

func (*GCS) DeepCopy

func (in *GCS) DeepCopy() *GCS

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

func (*GCS) DeepCopyInto

func (in *GCS) DeepCopyInto(out *GCS)

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

func (*GCS) DeepCopyObject

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

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

type GCSList

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

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true GCSList contains a list of GCS

func (*GCSList) DeepCopy

func (in *GCSList) DeepCopy() *GCSList

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

func (*GCSList) DeepCopyInto

func (in *GCSList) DeepCopyInto(out *GCSList)

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

func (*GCSList) DeepCopyObject

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

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

type GCSSpec

type GCSSpec struct {
	// GCS bucket name
	// +optional
	Bucket string `json:"bucket,omitempty"`
	// GCS bucket prefix
	// +optional
	Prefix string `json:"prefix,omitempty"`
}

+kubebuilder:subresource:status GCSSpec defines the desired state of GCS

func (*GCSSpec) DeepCopy

func (in *GCSSpec) DeepCopy() *GCSSpec

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

func (*GCSSpec) DeepCopyInto

func (in *GCSSpec) DeepCopyInto(out *GCSSpec)

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

type StatusSpec

type StatusSpec struct {
	// +kubebuilder:validation:Enum={"Success","Failure"}
	State string `json:"state"`
	// The current phase of the terraform workflow
	Phase string `json:"phase"`
}

+kubebuilder:subresource:status EtcdV3 status defines the status of EtcdV3

func (*StatusSpec) DeepCopy

func (in *StatusSpec) DeepCopy() *StatusSpec

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

func (*StatusSpec) DeepCopyInto

func (in *StatusSpec) DeepCopyInto(out *StatusSpec)

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