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: 14 Imported by: 0

Documentation

Overview

+groupName=droplet.digitalocean.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: droplet.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 Droplet

type Droplet struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DropletSpec   `json:"spec,omitempty"`
	Status            DropletStatus `json:"status,omitempty"`
}

func (*Droplet) DeepCopy

func (in *Droplet) DeepCopy() *Droplet

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

func (*Droplet) DeepCopyInto

func (in *Droplet) DeepCopyInto(out *Droplet)

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

func (*Droplet) DeepCopyObject

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

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

func (*Droplet) SetupWebhookWithManager

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

func (*Droplet) ValidateCreate

func (r *Droplet) ValidateCreate() error

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

func (*Droplet) ValidateDelete

func (r *Droplet) ValidateDelete() error

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

func (*Droplet) ValidateUpdate

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

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

type DropletList

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

DropletList is a list of Droplets

func (*DropletList) DeepCopy

func (in *DropletList) DeepCopy() *DropletList

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

func (*DropletList) DeepCopyInto

func (in *DropletList) DeepCopyInto(out *DropletList)

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

func (*DropletList) DeepCopyObject

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

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

type DropletSpec

type DropletSpec struct {
	State *DropletSpecResource `json:"state,omitempty" tf:"-"`

	Resource DropletSpecResource `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 (*DropletSpec) DeepCopy

func (in *DropletSpec) DeepCopy() *DropletSpec

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

func (*DropletSpec) DeepCopyInto

func (in *DropletSpec) DeepCopyInto(out *DropletSpec)

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

type DropletSpecResource

type DropletSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// +optional
	Backups *bool `json:"backups,omitempty" tf:"backups"`
	// +optional
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at"`
	// +optional
	Disk *int64 `json:"disk,omitempty" tf:"disk"`
	// +optional
	DropletAgent *bool `json:"dropletAgent,omitempty" tf:"droplet_agent"`
	// +optional
	GracefulShutdown *bool   `json:"gracefulShutdown,omitempty" tf:"graceful_shutdown"`
	Image            *string `json:"image" tf:"image"`
	// +optional
	Ipv4Address *string `json:"ipv4Address,omitempty" tf:"ipv4_address"`
	// +optional
	Ipv4AddressPrivate *string `json:"ipv4AddressPrivate,omitempty" tf:"ipv4_address_private"`
	// +optional
	Ipv6 *bool `json:"ipv6,omitempty" tf:"ipv6"`
	// +optional
	Ipv6Address *string `json:"ipv6Address,omitempty" tf:"ipv6_address"`
	// +optional
	Locked *bool `json:"locked,omitempty" tf:"locked"`
	// +optional
	Memory *int64 `json:"memory,omitempty" tf:"memory"`
	// +optional
	Monitoring *bool   `json:"monitoring,omitempty" tf:"monitoring"`
	Name       *string `json:"name" tf:"name"`
	// +optional
	PriceHourly *float64 `json:"priceHourly,omitempty" tf:"price_hourly"`
	// +optional
	PriceMonthly *float64 `json:"priceMonthly,omitempty" tf:"price_monthly"`
	// +optional
	// Deprecated
	PrivateNetworking *bool   `json:"privateNetworking,omitempty" tf:"private_networking"`
	Region            *string `json:"region" tf:"region"`
	// +optional
	ResizeDisk *bool   `json:"resizeDisk,omitempty" tf:"resize_disk"`
	Size       *string `json:"size" tf:"size"`
	// +optional
	SshKeys []string `json:"sshKeys,omitempty" tf:"ssh_keys"`
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// +optional
	Urn *string `json:"urn,omitempty" tf:"urn"`
	// +optional
	UserData *string `json:"userData,omitempty" tf:"user_data"`
	// +optional
	Vcpus *int64 `json:"vcpus,omitempty" tf:"vcpus"`
	// +optional
	VolumeIDS []string `json:"volumeIDS,omitempty" tf:"volume_ids"`
	// +optional
	VpcUUID *string `json:"vpcUUID,omitempty" tf:"vpc_uuid"`
}

func (*DropletSpecResource) DeepCopy

func (in *DropletSpecResource) DeepCopy() *DropletSpecResource

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

func (*DropletSpecResource) DeepCopyInto

func (in *DropletSpecResource) DeepCopyInto(out *DropletSpecResource)

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

type DropletStatus

type DropletStatus 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 (*DropletStatus) DeepCopy

func (in *DropletStatus) DeepCopy() *DropletStatus

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

func (*DropletStatus) DeepCopyInto

func (in *DropletStatus) DeepCopyInto(out *DropletStatus)

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

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 SnapshotSpecResource

type SnapshotSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// +optional
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at"`
	DropletID *string `json:"dropletID" tf:"droplet_id"`
	// +optional
	MinDiskSize *int64  `json:"minDiskSize,omitempty" tf:"min_disk_size"`
	Name        *string `json:"name" tf:"name"`
	// +optional
	Regions []string `json:"regions,omitempty" tf:"regions"`
	// +optional
	Size *float64 `json:"size,omitempty" tf:"size"`
}

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