v1alpha1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains managed resources for DigitalOcean compute services such as Droplets. +kubebuilder:object:generate=true +groupName=compute.do.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	StatusNew     = "new"
	StatusActive  = "active"
	StatusOff     = "off"
	StatusArchive = "archive"
)

Known Droplet statuses.

View Source
const (
	Group   = "compute.do.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	DropletKind             = reflect.TypeOf(Droplet{}).Name()
	DropletGroupKind        = schema.GroupKind{Group: Group, Kind: DropletKind}.String()
	DropletKindAPIVersion   = DropletKind + "." + SchemeGroupVersion.String()
	DropletGroupVersionKind = SchemeGroupVersion.WithKind(DropletKind)
)

Droplet type metadata.

Functions

This section is empty.

Types

type Droplet

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

	Spec   DropletSpec   `json:"spec"`
	Status DropletStatus `json:"status,omitempty"`
}

A Droplet is a managed resource that represents a DigitalOcean Droplet. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,do}

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) GetCondition

GetCondition of this Droplet.

func (*Droplet) GetDeletionPolicy

func (mg *Droplet) GetDeletionPolicy() runtimev1alpha1.DeletionPolicy

GetDeletionPolicy of this Droplet.

func (*Droplet) GetProviderConfigReference

func (mg *Droplet) GetProviderConfigReference() *runtimev1alpha1.Reference

GetProviderConfigReference of this Droplet.

func (*Droplet) GetProviderReference

func (mg *Droplet) GetProviderReference() *runtimev1alpha1.Reference

GetProviderReference of this Droplet. Deprecated: Use GetProviderConfigReference.

func (*Droplet) GetWriteConnectionSecretToReference

func (mg *Droplet) GetWriteConnectionSecretToReference() *runtimev1alpha1.SecretReference

GetWriteConnectionSecretToReference of this Droplet.

func (*Droplet) SetConditions

func (mg *Droplet) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this Droplet.

func (*Droplet) SetDeletionPolicy

func (mg *Droplet) SetDeletionPolicy(r runtimev1alpha1.DeletionPolicy)

SetDeletionPolicy of this Droplet.

func (*Droplet) SetProviderConfigReference

func (mg *Droplet) SetProviderConfigReference(r *runtimev1alpha1.Reference)

SetProviderConfigReference of this Droplet.

func (*Droplet) SetProviderReference

func (mg *Droplet) SetProviderReference(r *runtimev1alpha1.Reference)

SetProviderReference of this Droplet. Deprecated: Use SetProviderConfigReference.

func (*Droplet) SetWriteConnectionSecretToReference

func (mg *Droplet) SetWriteConnectionSecretToReference(r *runtimev1alpha1.SecretReference)

SetWriteConnectionSecretToReference of this Droplet.

type DropletList

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

DropletList contains a list of Droplet.

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.

func (*DropletList) GetItems

func (l *DropletList) GetItems() []resource.Managed

GetItems of this DropletList.

type DropletObservation

type DropletObservation struct {
	// CreationTimestamp in RFC3339 text format.
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// ID for the resource. This identifier is defined by the server.
	ID int `json:"id,omitempty"`

	// A Status string indicating the state of the Droplet instance.
	//
	// Possible values:
	//   "new"
	//   "active"
	//   "off"
	//   "archive"
	Status string `json:"status,omitempty"`
}

A DropletObservation reflects the observed state of a Droplet on DigitalOcean.

func (*DropletObservation) DeepCopy

func (in *DropletObservation) DeepCopy() *DropletObservation

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

func (*DropletObservation) DeepCopyInto

func (in *DropletObservation) DeepCopyInto(out *DropletObservation)

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

type DropletParameters

type DropletParameters struct {
	// Region: The unique slug identifier for the region that you wish to
	// deploy in.
	// +immutable
	Region string `json:"region"`

	// Size: The unique slug identifier for the size that you wish to select
	// for this Droplet.
	// +immutable
	Size string `json:"size"`

	// Image: The image ID of a public or private image, or the unique slug
	// identifier for a public image. This image will be the base image for
	// your Droplet.
	// +immutable
	Image string `json:"image"`

	// SSHKeys: An array containing the IDs or fingerprints of the SSH keys
	// that you wish to embed in the Droplet's root account upon creation.
	// +optional
	// +immutable
	SSHKeys []string `json:"ssh_keys"`

	// Backups: A boolean indicating whether automated backups should be enabled
	// for the Droplet. Automated backups can only be enabled when the Droplet is
	// created.
	// +optional
	// +immutable
	Backups *bool `json:"backups"`

	// IPv6: A boolean indicating whether IPv6 is enabled on the Droplet.
	// +optional
	// +immutable
	IPv6 *bool `json:"ipv6"`

	// PrivateNetworking: This parameter has been deprecated. Use 'vpc_uuid'
	// instead to specify a VPC network for the Droplet. If no `vpc_uuid` is
	// provided, the Droplet will be placed in the default VPC.
	// +optional
	// +immutable
	PrivateNetworking *bool `json:"private_networking"`

	// Monitoring: A boolean indicating whether to install the DigitalOcean
	// agent for monitoring.
	// +optional
	// +immutable
	Monitoring *bool `json:"monitoring"`

	// Volumes: A flat array including the unique string identifier for each block
	// storage volume to be attached to the Droplet. At the moment a volume can only
	// be attached to a single Droplet.
	// +optional
	// +immutable
	Volumes []string `json:"volumes,omitempty"`

	// Tags: A flat array of tag names as strings to apply to the Droplet after it
	// is created. Tag names can either be existing or new tags.
	// +optional
	// +immutable
	Tags []string `json:"tags"`

	// VPCUUID: A string specifying the UUID of the VPC to which the Droplet
	// will be assigned. If excluded, beginning on April 7th, 2020, the Droplet
	// will be assigned to your account's default VPC for the region.
	// +optional
	// +immutable
	VPCUUID *string `json:"vpc_uuid,omitempty"`
}

DropletParameters define the desired state of a DigitalOcean Droplet. Most fields map directly to a Droplet: https://developers.digitalocean.com/documentation/v2/#droplets

func (*DropletParameters) DeepCopy

func (in *DropletParameters) DeepCopy() *DropletParameters

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

func (*DropletParameters) DeepCopyInto

func (in *DropletParameters) DeepCopyInto(out *DropletParameters)

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

type DropletSpec

type DropletSpec struct {
	v1alpha1.ResourceSpec `json:",inline"`
	ForProvider           DropletParameters `json:"forProvider"`
}

A DropletSpec defines the desired state of a Droplet.

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 DropletStatus

type DropletStatus struct {
	v1alpha1.ResourceStatus `json:",inline"`
	AtProvider              DropletObservation `json:"atProvider,omitempty"`
}

A DropletStatus represents the observed state of a Droplet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL