v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 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="PRIVATE IPv4",type="string",JSONPath=".status.atProvider.privateIPv4" +kubebuilder:printcolumn:name="PUBLIC IPv4",type="string",JSONPath=".status.atProvider.publicIPv4" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="REGION",type="string",JSONPath=".status.atProvider.region" +kubebuilder:printcolumn:name="SIZE",type="string",JSONPath=".status.atProvider.size" +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

func (mg *Droplet) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Droplet.

func (*Droplet) GetDeletionPolicy

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

GetDeletionPolicy of this Droplet.

func (*Droplet) GetProviderConfigReference

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

GetProviderConfigReference of this Droplet.

func (*Droplet) GetProviderReference

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

GetProviderReference of this Droplet. Deprecated: Use GetProviderConfigReference.

func (*Droplet) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Droplet.

func (*Droplet) SetConditions

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

SetConditions of this Droplet.

func (*Droplet) SetDeletionPolicy

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

SetDeletionPolicy of this Droplet.

func (*Droplet) SetProviderConfigReference

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

SetProviderConfigReference of this Droplet.

func (*Droplet) SetProviderReference

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

SetProviderReference of this Droplet. Deprecated: Use SetProviderConfigReference.

func (*Droplet) SetWriteConnectionSecretToReference

func (mg *Droplet) SetWriteConnectionSecretToReference(r *xpv1.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"`

	// Private IPv4 address of the resource.
	PrivateIPv4 string `json:"privateIPv4,omitempty"`

	// Public IPv4 address of the resource.
	PublicIPv4 string `json:"publicIPv4,omitempty"`

	// Resource region slug.
	Region string `json:"region,omitempty"`

	// Resource size slug.
	Size string `json:"size,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:"sshKeys,omitempty"`

	// 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,omitempty"`

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

	// 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:"privateNetworking,omitempty"`

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

	// UserData: A string used to pass user data to the DigitalOcean Droplet.
	// +optional
	// +immutable
	UserData *string `json:"userData,omitempty"`

	// 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,omitempty"`

	// 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:"vpcUuid,omitempty"`

	// WithDropletAgent: A boolean indicating whether to install the DigitalOcean
	// agent used for providing access to the Droplet web console in the control panel.
	// To prevent it from being installed, set to false.
	// To make installation errors fatal, explicitly set it to true.
	// +optional
	// +immutable
	WithDropletAgent *bool `json:"withDropletAgent,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 {
	xpv1.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 {
	xpv1.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