v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=snapshot.azurerm.kubeform.com

Index

Constants

This section is empty.

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.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: snapshot.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns 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 Snapshot

type Snapshot struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SnapshotSpec   `json:"spec,omitempty"`
	Status            SnapshotStatus `json:"status,omitempty"`
}

func (*Snapshot) DeepCopy

func (in *Snapshot) DeepCopy() *Snapshot

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

func (*Snapshot) DeepCopyInto

func (in *Snapshot) DeepCopyInto(out *Snapshot)

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

func (*Snapshot) DeepCopyObject

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

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

func (*Snapshot) SetupWebhookWithManager

func (r *Snapshot) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Snapshot) ValidateCreate

func (r *Snapshot) ValidateCreate() error

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

func (*Snapshot) ValidateDelete

func (r *Snapshot) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Snapshot) ValidateUpdate

func (r *Snapshot) ValidateUpdate(old runtime.Object) error

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

type SnapshotList

type SnapshotList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Snapshot CRD objects
	Items []Snapshot `json:"items,omitempty"`
}

SnapshotList is a list of Snapshots

func (*SnapshotList) DeepCopy

func (in *SnapshotList) DeepCopy() *SnapshotList

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

func (*SnapshotList) DeepCopyInto

func (in *SnapshotList) DeepCopyInto(out *SnapshotList)

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

func (*SnapshotList) DeepCopyObject

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

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

type SnapshotSpec

type SnapshotSpec struct {
	State *SnapshotSpecResource `json:"state,omitempty" tf:"-"`

	Resource SnapshotSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*SnapshotSpec) DeepCopy

func (in *SnapshotSpec) DeepCopy() *SnapshotSpec

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

func (*SnapshotSpec) DeepCopyInto

func (in *SnapshotSpec) DeepCopyInto(out *SnapshotSpec)

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

type SnapshotSpecEncryptionSettings

type SnapshotSpecEncryptionSettings struct {
	// +optional
	DiskEncryptionKey *SnapshotSpecEncryptionSettingsDiskEncryptionKey `json:"diskEncryptionKey,omitempty" tf:"disk_encryption_key"`
	Enabled           *bool                                            `json:"enabled" tf:"enabled"`
	// +optional
	KeyEncryptionKey *SnapshotSpecEncryptionSettingsKeyEncryptionKey `json:"keyEncryptionKey,omitempty" tf:"key_encryption_key"`
}

func (*SnapshotSpecEncryptionSettings) DeepCopy

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

func (*SnapshotSpecEncryptionSettings) DeepCopyInto

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

type SnapshotSpecEncryptionSettingsCodec

type SnapshotSpecEncryptionSettingsCodec struct {
}

+k8s:deepcopy-gen=false

func (SnapshotSpecEncryptionSettingsCodec) Decode

func (SnapshotSpecEncryptionSettingsCodec) Encode

func (SnapshotSpecEncryptionSettingsCodec) IsEmpty

type SnapshotSpecEncryptionSettingsDiskEncryptionKey

type SnapshotSpecEncryptionSettingsDiskEncryptionKey struct {
	SecretURL     *string `json:"secretURL" tf:"secret_url"`
	SourceVaultID *string `json:"sourceVaultID" tf:"source_vault_id"`
}

func (*SnapshotSpecEncryptionSettingsDiskEncryptionKey) DeepCopy

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

func (*SnapshotSpecEncryptionSettingsDiskEncryptionKey) DeepCopyInto

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

type SnapshotSpecEncryptionSettingsDiskEncryptionKeyCodec

type SnapshotSpecEncryptionSettingsDiskEncryptionKeyCodec struct {
}

+k8s:deepcopy-gen=false

func (SnapshotSpecEncryptionSettingsDiskEncryptionKeyCodec) Decode

func (SnapshotSpecEncryptionSettingsDiskEncryptionKeyCodec) Encode

func (SnapshotSpecEncryptionSettingsDiskEncryptionKeyCodec) IsEmpty

type SnapshotSpecEncryptionSettingsKeyEncryptionKey

type SnapshotSpecEncryptionSettingsKeyEncryptionKey struct {
	KeyURL        *string `json:"keyURL" tf:"key_url"`
	SourceVaultID *string `json:"sourceVaultID" tf:"source_vault_id"`
}

func (*SnapshotSpecEncryptionSettingsKeyEncryptionKey) DeepCopy

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

func (*SnapshotSpecEncryptionSettingsKeyEncryptionKey) DeepCopyInto

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

type SnapshotSpecEncryptionSettingsKeyEncryptionKeyCodec

type SnapshotSpecEncryptionSettingsKeyEncryptionKeyCodec struct {
}

+k8s:deepcopy-gen=false

func (SnapshotSpecEncryptionSettingsKeyEncryptionKeyCodec) Decode

func (SnapshotSpecEncryptionSettingsKeyEncryptionKeyCodec) Encode

func (SnapshotSpecEncryptionSettingsKeyEncryptionKeyCodec) IsEmpty

type SnapshotSpecResource

type SnapshotSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	CreateOption *string `json:"createOption" tf:"create_option"`
	// +optional
	DiskSizeGb *int64 `json:"diskSizeGb,omitempty" tf:"disk_size_gb"`
	// +optional
	EncryptionSettings *SnapshotSpecEncryptionSettings `json:"encryptionSettings,omitempty" tf:"encryption_settings"`
	Location           *string                         `json:"location" tf:"location"`
	Name               *string                         `json:"name" tf:"name"`
	ResourceGroupName  *string                         `json:"resourceGroupName" tf:"resource_group_name"`
	// +optional
	SourceResourceID *string `json:"sourceResourceID,omitempty" tf:"source_resource_id"`
	// +optional
	SourceURI *string `json:"sourceURI,omitempty" tf:"source_uri"`
	// +optional
	StorageAccountID *string `json:"storageAccountID,omitempty" tf:"storage_account_id"`
	// +optional
	Tags *map[string]string `json:"tags,omitempty" tf:"tags"`
}

func (*SnapshotSpecResource) DeepCopy

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

func (*SnapshotSpecResource) DeepCopyInto

func (in *SnapshotSpecResource) DeepCopyInto(out *SnapshotSpecResource)

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

type SnapshotStatus

type SnapshotStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*SnapshotStatus) DeepCopy

func (in *SnapshotStatus) DeepCopy() *SnapshotStatus

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

func (*SnapshotStatus) DeepCopyInto

func (in *SnapshotStatus) DeepCopyInto(out *SnapshotStatus)

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