v1

package
v0.0.0-...-088e69e Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the aws v1 API group +kubebuilder:object:generate=true +groupName=aws.my.domain

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "aws.my.controller", Version: "v1"}

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

Functions

This section is empty.

Types

type CredentialsSecret

type CredentialsSecret struct {
	// Name of the secret containing credentials
	Name string `json:"name"`

	// Namespace where the secret resides
	Namespace string `json:"namespace,omitempty"`

	// Region of the AWS account
	Region string `json:"region,omitempty"`
}

CredentialsSecret defines the reference to the secret containing AWS credentials

func (*CredentialsSecret) DeepCopy

func (in *CredentialsSecret) DeepCopy() *CredentialsSecret

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

func (*CredentialsSecret) DeepCopyInto

func (in *CredentialsSecret) DeepCopyInto(out *CredentialsSecret)

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

type InstanceStatus

type InstanceStatus struct {
	InstanceId         string `json:"instanceId,omitempty"`
	State              string `json:"state,omitempty"`
	PrivateIpAddresses string `json:"privateIpAddresses,omitempty"`
	PublicIpAddresses  string `json:"publicIpAddresses,omitempty"`
}

func (*InstanceStatus) DeepCopy

func (in *InstanceStatus) DeepCopy() *InstanceStatus

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

func (*InstanceStatus) DeepCopyInto

func (in *InstanceStatus) DeepCopyInto(out *InstanceStatus)

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

type Vm

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

	Spec   VmSpec   `json:"spec,omitempty"`
	Status VmStatus `json:"status,omitempty"`
	// CredentialsSecretRef specifies the reference to the secret containing AWS credentials (optional)
	CredentialsSecretRef CredentialsSecret `json:"credentialsSecretRef,omitempty"`
}

Vm is the Schema for the vms API

func (*Vm) DeepCopy

func (in *Vm) DeepCopy() *Vm

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

func (*Vm) DeepCopyInto

func (in *Vm) DeepCopyInto(out *Vm)

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

func (*Vm) DeepCopyObject

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

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

type VmList

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

VmList contains a list of Vm

func (*VmList) DeepCopy

func (in *VmList) DeepCopy() *VmList

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

func (*VmList) DeepCopyInto

func (in *VmList) DeepCopyInto(out *VmList)

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

func (*VmList) DeepCopyObject

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

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

type VmSpec

type VmSpec struct {
	Name               string   `json:"name,omitempty"`
	MaxCount           int      `json:"maxCount,omitempty"`
	MinCount           int      `json:"minCount,omitempty"`
	ImageId            string   `json:"imageId,omitempty"`
	InstanceType       string   `json:"instanceType,omitempty"`
	KeyName            string   `json:"keyName,omitempty"`
	SecurityGroupIds   []string `json:"securityGroupIds,omitempty"`
	SubnetId           string   `json:"subnetId,omitempty"`
	UserData           string   `json:"userData,omitempty"`
	DryRun             bool     `json:"dryRun,omitempty"`
	IamInstanceProfile string   `json:"iamInstanceProfile,omitempty"`
}

VmSpec defines the desired state of Vm

func (*VmSpec) DeepCopy

func (in *VmSpec) DeepCopy() *VmSpec

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

func (*VmSpec) DeepCopyInto

func (in *VmSpec) DeepCopyInto(out *VmSpec)

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

type VmStatus

type VmStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Status         string           `json:"status,omitempty"`
	Error          string           `json:"error,omitempty"`
	InstanceStatus []InstanceStatus `json:"instanceStatus,omitempty"`
}

VmStatus defines the observed state of Vm

func (*VmStatus) DeepCopy

func (in *VmStatus) DeepCopy() *VmStatus

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

func (*VmStatus) DeepCopyInto

func (in *VmStatus) DeepCopyInto(out *VmStatus)

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