v1alpha2

package
v0.0.0-...-c93c565 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the infrastructure v1alpha2 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io

Index

Constants

View Source
const (
	ClusterFinalizer = "vultrcluster.infrastructure.cluster.x-k8s.io"
)
View Source
const (
	MachineFinalizer = "vultrmachine.infrastructure.cluster.x-k8s.io"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.x-k8s.io", Version: "v1alpha2"}

	// 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
)
View Source
var (
	SubscriptionStatusPending   = SubscriptionStatus("pending")
	SubscriptionStatusActive    = SubscriptionStatus("active")
	SubscriptionStatusSuspended = SubscriptionStatus("suspended")
	SubscriptionStatusClosed    = SubscriptionStatus("closed")
)
View Source
var (
	PowerStatusStarting = PowerStatus("starting")
	PowerStatusStopped  = PowerStatus("stopped")
	PowerStatusRunning  = PowerStatus("running")
)
View Source
var (
	ServerStateNone        = ServerState("none")
	ServerStateLocked      = ServerState("locked")
	ServerStateInstalling  = ServerState("installing")
	ServerStateBooting     = ServerState("booting")
	ServerStateIsoMounting = ServerState("isomounting")
	ServerStateOK          = ServerState("ok")
)

Functions

This section is empty.

Types

type APIEndpoint

type APIEndpoint struct {
	// ID is the id of Vultr reserved IP (SUBID).
	ID string `json:"SUBID,string"`

	// The hostname on which the API server is serving.
	Host string `json:"host"`

	// The port on which the API server is serving.
	Port int `json:"port"`
}

APIEndpoint represents control-plane's apiserver endpoints.

func (*APIEndpoint) DeepCopy

func (in *APIEndpoint) DeepCopy() *APIEndpoint

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

func (*APIEndpoint) DeepCopyInto

func (in *APIEndpoint) DeepCopyInto(out *APIEndpoint)

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

type PowerStatus

type PowerStatus string

PowerStatus represents that the VPS is powerd on or not

type ServerState

type ServerState string

ServerState represents a detail of server state.

type SubscriptionStatus

type SubscriptionStatus string

ServerStatus represents the status of subscription.

type VultrCluster

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

	Spec   VultrClusterSpec   `json:"spec,omitempty"`
	Status VultrClusterStatus `json:"status,omitempty"`
}

VultrCluster is the Schema for the vultrclusters API

func (*VultrCluster) DeepCopy

func (in *VultrCluster) DeepCopy() *VultrCluster

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

func (*VultrCluster) DeepCopyInto

func (in *VultrCluster) DeepCopyInto(out *VultrCluster)

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

func (*VultrCluster) DeepCopyObject

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

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

type VultrClusterList

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

VultrClusterList contains a list of VultrCluster

func (*VultrClusterList) DeepCopy

func (in *VultrClusterList) DeepCopy() *VultrClusterList

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

func (*VultrClusterList) DeepCopyInto

func (in *VultrClusterList) DeepCopyInto(out *VultrClusterList)

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

func (*VultrClusterList) DeepCopyObject

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

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

type VultrClusterSpec

type VultrClusterSpec struct {

	// The Vultr Region (DCID) the cluster lives in.
	Region int `json:"region"`
}

VultrClusterSpec defines the desired state of VultrCluster

func (*VultrClusterSpec) DeepCopy

func (in *VultrClusterSpec) DeepCopy() *VultrClusterSpec

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

func (*VultrClusterSpec) DeepCopyInto

func (in *VultrClusterSpec) DeepCopyInto(out *VultrClusterSpec)

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

type VultrClusterStatus

type VultrClusterStatus struct {
	Ready bool `json:"ready"`
	// +optional
	APIEndpoints []APIEndpoint `json:"apiEndpoints,omitempty"`
}

VultrClusterStatus defines the observed state of VultrCluster

func (*VultrClusterStatus) DeepCopy

func (in *VultrClusterStatus) DeepCopy() *VultrClusterStatus

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

func (*VultrClusterStatus) DeepCopyInto

func (in *VultrClusterStatus) DeepCopyInto(out *VultrClusterStatus)

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

type VultrMachine

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

	Spec   VultrMachineSpec   `json:"spec,omitempty"`
	Status VultrMachineStatus `json:"status,omitempty"`
}

VultrMachine is the Schema for the vultrmachines API

func (*VultrMachine) DeepCopy

func (in *VultrMachine) DeepCopy() *VultrMachine

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

func (*VultrMachine) DeepCopyInto

func (in *VultrMachine) DeepCopyInto(out *VultrMachine)

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

func (*VultrMachine) DeepCopyObject

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

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

type VultrMachineList

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

VultrMachineList contains a list of VultrMachine

func (*VultrMachineList) DeepCopy

func (in *VultrMachineList) DeepCopy() *VultrMachineList

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

func (*VultrMachineList) DeepCopyInto

func (in *VultrMachineList) DeepCopyInto(out *VultrMachineList)

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

func (*VultrMachineList) DeepCopyObject

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

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

type VultrMachineSpec

type VultrMachineSpec struct {
	// ProviderID is the unique identifer as specified by the cloud provider.
	ProviderID *string `json:"providerID,omitempty"`

	// OSID is the id of operating system (OSID).
	OSID int `json:"osID,omitempty"`

	// PlanID is the id of Vultr VPS plan (VPSPLANID).
	PlanID int `json:"planID,omitempty"`

	// SSHKeyName is the name of the ssh key to attach to the instance.
	SSHKeyName string `json:"sshKeyName,omitempty"`

	// ScriptID is the id of Startup Script (SCRIPTID).
	ScriptID int `json:"scriptID,omitempty"`
}

VultrMachineSpec defines the desired state of VultrMachine

func (*VultrMachineSpec) DeepCopy

func (in *VultrMachineSpec) DeepCopy() *VultrMachineSpec

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

func (*VultrMachineSpec) DeepCopyInto

func (in *VultrMachineSpec) DeepCopyInto(out *VultrMachineSpec)

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

type VultrMachineStatus

type VultrMachineStatus struct {
	// Ready represents the infrastructure is ready to be used or not.
	Ready bool `json:"ready"`

	// ServerStatus represents the status of subscription.
	SubscriptionStatus *SubscriptionStatus `json:"subscriptionStatus,omitempty"`

	// PowerStatus represents that the VPS is powerd on or not
	PowerStatus *PowerStatus `json:"powerStatus,omitempty"`

	// ServerState represents a detail of server state.
	ServerState *ServerState `json:"serverState,omitempty"`
}

VultrMachineStatus defines the observed state of VultrMachine

func (*VultrMachineStatus) DeepCopy

func (in *VultrMachineStatus) DeepCopy() *VultrMachineStatus

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

func (*VultrMachineStatus) DeepCopyInto

func (in *VultrMachineStatus) DeepCopyInto(out *VultrMachineStatus)

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