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=bare.vultr.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: bare.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 MetalServer

type MetalServer struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MetalServerSpec   `json:"spec,omitempty"`
	Status            MetalServerStatus `json:"status,omitempty"`
}

func (*MetalServer) DeepCopy

func (in *MetalServer) DeepCopy() *MetalServer

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

func (*MetalServer) DeepCopyInto

func (in *MetalServer) DeepCopyInto(out *MetalServer)

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

func (*MetalServer) DeepCopyObject

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

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

func (*MetalServer) SetupWebhookWithManager

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

func (*MetalServer) ValidateCreate

func (r *MetalServer) ValidateCreate() error

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

func (*MetalServer) ValidateDelete

func (r *MetalServer) ValidateDelete() error

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

func (*MetalServer) ValidateUpdate

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

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

type MetalServerList

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

MetalServerList is a list of MetalServers

func (*MetalServerList) DeepCopy

func (in *MetalServerList) DeepCopy() *MetalServerList

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

func (*MetalServerList) DeepCopyInto

func (in *MetalServerList) DeepCopyInto(out *MetalServerList)

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

func (*MetalServerList) DeepCopyObject

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

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

type MetalServerSpec

type MetalServerSpec struct {
	State *MetalServerSpecResource `json:"state,omitempty" tf:"-"`

	Resource MetalServerSpecResource `json:"resource" tf:"resource"`

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

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

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

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

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

func (*MetalServerSpec) DeepCopy

func (in *MetalServerSpec) DeepCopy() *MetalServerSpec

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

func (*MetalServerSpec) DeepCopyInto

func (in *MetalServerSpec) DeepCopyInto(out *MetalServerSpec)

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

type MetalServerSpecResource

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

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

	// +optional
	ActivationEmail *bool `json:"activationEmail,omitempty" tf:"activation_email"`
	// +optional
	AppID *int64 `json:"appID,omitempty" tf:"app_id"`
	// +optional
	CpuCount *int64 `json:"cpuCount,omitempty" tf:"cpu_count"`
	// +optional
	DateCreated *string `json:"dateCreated,omitempty" tf:"date_created"`
	// +optional
	DefaultPassword *string `json:"-" sensitive:"true" tf:"default_password"`
	// +optional
	Disk *string `json:"disk,omitempty" tf:"disk"`
	// +optional
	EnableIpv6 *bool `json:"enableIpv6,omitempty" tf:"enable_ipv6"`
	// +optional
	GatewayV4 *string `json:"gatewayV4,omitempty" tf:"gateway_v4"`
	// +optional
	Hostname *string `json:"hostname,omitempty" tf:"hostname"`
	// +optional
	ImageID *string `json:"imageID,omitempty" tf:"image_id"`
	// +optional
	Label *string `json:"label,omitempty" tf:"label"`
	// +optional
	MacAddress *int64 `json:"macAddress,omitempty" tf:"mac_address"`
	// +optional
	MainIP *string `json:"mainIP,omitempty" tf:"main_ip"`
	// +optional
	NetmaskV4 *string `json:"netmaskV4,omitempty" tf:"netmask_v4"`
	// +optional
	Os *string `json:"os,omitempty" tf:"os"`
	// +optional
	OsID *int64  `json:"osID,omitempty" tf:"os_id"`
	Plan *string `json:"plan" tf:"plan"`
	// +optional
	Ram    *string `json:"ram,omitempty" tf:"ram"`
	Region *string `json:"region" tf:"region"`
	// +optional
	ReservedIpv4 *string `json:"reservedIpv4,omitempty" tf:"reserved_ipv4"`
	// +optional
	ScriptID *string `json:"scriptID,omitempty" tf:"script_id"`
	// +optional
	SnapshotID *string `json:"snapshotID,omitempty" tf:"snapshot_id"`
	// +optional
	SshKeyIDS []string `json:"sshKeyIDS,omitempty" tf:"ssh_key_ids"`
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// +optional
	Tag *string `json:"tag,omitempty" tf:"tag"`
	// +optional
	UserData *string `json:"userData,omitempty" tf:"user_data"`
	// +optional
	V6MainIP *string `json:"v6MainIP,omitempty" tf:"v6_main_ip"`
	// +optional
	V6Network *string `json:"v6Network,omitempty" tf:"v6_network"`
	// +optional
	V6NetworkSize *int64 `json:"v6NetworkSize,omitempty" tf:"v6_network_size"`
}

func (*MetalServerSpecResource) DeepCopy

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

func (*MetalServerSpecResource) DeepCopyInto

func (in *MetalServerSpecResource) DeepCopyInto(out *MetalServerSpecResource)

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

type MetalServerStatus

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

func (in *MetalServerStatus) DeepCopy() *MetalServerStatus

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

func (*MetalServerStatus) DeepCopyInto

func (in *MetalServerStatus) DeepCopyInto(out *MetalServerStatus)

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