v1alpha1

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true +groupName=core.onmetal.de

Index

Constants

View Source
const (
	// AccountKey is the Account lookup key
	AccountKey = "account"
	// AccountStatePending indicates that the Account reconciliation is pending.
	AccountStatePending = "Pending"
	// AccountStateReady indicates that the Account reconciliation was successful.
	AccountStateReady = "Ready"
	// AccountStateFailed indicates that the Account reconciliation failed.
	AccountStateFailed = "Failed"
	// AccountStateTerminating indicates that the Account is in termination process.
	AccountStateTerminating = "Terminating"
	// AccountStateInitial indicates that the Account is in an initial state
	AccountStateInitial = "Initial"
)
View Source
const (
	// ZoneStateActive represents the active state of an AZ
	ZoneStateActive = "Active"
	// ZoneStateOffline represents the offline state of an AZ
	ZoneStateOffline = "Offline"
	// RegionStateActive represents the active state of a region
	RegionStateActive = "Active"
	// RegionStateOffline represents the offline state of a region
	RegionStateOffline = "Offline"
)
View Source
const (
	// ScopeStatePending indicates that the scope reconciliation is pending.
	ScopeStatePending = "Pending"
	// ScopeStateReady indicates that the scope reconciliation was successful.
	ScopeStateReady = "Ready"
	// ScopeStateFailed indicates that the scope reconciliation failed.
	ScopeStateFailed = "Failed"
	// ScopeStateTerminating indicates that the scope is in termination process.
	ScopeStateTerminating = "Terminating"
	// ScopeStateInitial indicates that the Scope is in an initial state
	ScopeStateInitial = "Initial"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "core.onmetal.de", Version: "v1alpha1"}

	// 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 AccountGK = schema.GroupKind{
	Group: GroupVersion.Group,
	Kind:  "Account",
}
View Source
var ScopeGK = schema.GroupKind{
	Group: GroupVersion.Group,
	Kind:  "Scope",
}

Functions

This section is empty.

Types

type AZState

type AZState struct {
	Name               string `json:"name,omitempty"`
	common.StateFields `json:",inline"`
}

ZoneState describes the state of an AvailabilityZone within a region

func (*AZState) DeepCopy

func (in *AZState) DeepCopy() *AZState

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

func (*AZState) DeepCopyInto

func (in *AZState) DeepCopyInto(out *AZState)

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

type Account

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

	Spec   AccountSpec   `json:"spec,omitempty"`
	Status AccountStatus `json:"status,omitempty"`
}

Account is the Schema for the accounts API

func (*Account) DeepCopy

func (in *Account) DeepCopy() *Account

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

func (*Account) DeepCopyInto

func (in *Account) DeepCopyInto(out *Account)

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

func (*Account) DeepCopyObject

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

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

func (*Account) Default added in v0.0.7

func (r *Account) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Account) ValidateCreate added in v0.0.7

func (r *Account) ValidateCreate() error

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

func (*Account) ValidateDelete added in v0.0.7

func (r *Account) ValidateDelete() error

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

func (*Account) ValidateUpdate added in v0.0.7

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

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

type AccountList

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

AccountList contains a list of Account

func (*AccountList) DeepCopy

func (in *AccountList) DeepCopy() *AccountList

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

func (*AccountList) DeepCopyInto

func (in *AccountList) DeepCopyInto(out *AccountList)

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

func (*AccountList) DeepCopyObject

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

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

type AccountSpec

type AccountSpec struct {
	// CreatedBy is a subject representing a user name, an email address, or any other identifier of a user
	// who created the account.
	CreatedBy *rbacv1.Subject `json:"createdBy,omitempty"`
	// Description is a human-readable description of what the account is used for.
	Description string `json:"description,omitempty"`
	// Owner is a subject representing a user name, an email address, or any other identifier of a user owning
	// the account.
	Owner *rbacv1.Subject `json:"owner,omitempty"`
	// Purpose is a human-readable explanation of the account's purpose.
	Purpose string `json:"purpose,omitempty"`
}

AccountSpec defines the desired state of Account

func (*AccountSpec) DeepCopy

func (in *AccountSpec) DeepCopy() *AccountSpec

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

func (*AccountSpec) DeepCopyInto

func (in *AccountSpec) DeepCopyInto(out *AccountSpec)

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

type AccountStatus

type AccountStatus struct {
	common.StateFields `json:",inline"`
	// Namespace references the namespace of the account
	Namespace string `json:"namespace,omitempty"`
}

AccountStatus defines the observed state of Account

func (*AccountStatus) DeepCopy

func (in *AccountStatus) DeepCopy() *AccountStatus

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

func (*AccountStatus) DeepCopyInto

func (in *AccountStatus) DeepCopyInto(out *AccountStatus)

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

type Region

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

	Spec   RegionSpec   `json:"spec,omitempty"`
	Status RegionStatus `json:"status,omitempty"`
}

Region is the Schema for the regions API

func (*Region) DeepCopy

func (in *Region) DeepCopy() *Region

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

func (*Region) DeepCopyInto

func (in *Region) DeepCopyInto(out *Region)

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

func (*Region) DeepCopyObject

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

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

type RegionList

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

RegionList contains a list of Region

func (*RegionList) DeepCopy

func (in *RegionList) DeepCopy() *RegionList

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

func (*RegionList) DeepCopyInto

func (in *RegionList) DeepCopyInto(out *RegionList)

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

func (*RegionList) DeepCopyObject

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

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

type RegionSpec

type RegionSpec struct {
	// Location describes the physical location of the region
	Location string `json:"location,omitempty"`
	// AvailabilityZones represents the availability zones in a given region
	AvailabilityZones []string `json:"availabiltyZone"`
}

RegionSpec defines the desired state of Region

func (*RegionSpec) DeepCopy

func (in *RegionSpec) DeepCopy() *RegionSpec

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

func (*RegionSpec) DeepCopyInto

func (in *RegionSpec) DeepCopyInto(out *RegionSpec)

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

type RegionStatus

type RegionStatus struct {
	common.StateFields `json:",inline"`
	AvailabilityZones  []AZState `json:"availabilityZones,omitempty"`
}

RegionStatus defines the observed state of Region

func (*RegionStatus) DeepCopy

func (in *RegionStatus) DeepCopy() *RegionStatus

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

func (*RegionStatus) DeepCopyInto

func (in *RegionStatus) DeepCopyInto(out *RegionStatus)

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

type Scope

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

	Spec   ScopeSpec   `json:"spec,omitempty"`
	Status ScopeStatus `json:"status,omitempty"`
}

Scope is the Schema for the scopes API

func (*Scope) DeepCopy

func (in *Scope) DeepCopy() *Scope

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

func (*Scope) DeepCopyInto

func (in *Scope) DeepCopyInto(out *Scope)

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

func (*Scope) DeepCopyObject

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

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

func (*Scope) Default added in v0.0.7

func (r *Scope) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Scope) ValidateCreate added in v0.0.7

func (r *Scope) ValidateCreate() error

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

func (*Scope) ValidateDelete added in v0.0.7

func (r *Scope) ValidateDelete() error

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

func (*Scope) ValidateUpdate added in v0.0.7

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

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

type ScopeList

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

ScopeList contains a list of Scope

func (*ScopeList) DeepCopy

func (in *ScopeList) DeepCopy() *ScopeList

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

func (*ScopeList) DeepCopyInto

func (in *ScopeList) DeepCopyInto(out *ScopeList)

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

func (*ScopeList) DeepCopyObject

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

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

type ScopeSpec

type ScopeSpec struct {
	// Description is a human-readable description of what the scope is used for.
	Description string `json:"description,omitempty"`
	// Region describes the region scope
	Region string `json:"region,omitempty"`
}

ScopeSpec defines the desired state of Scope

func (*ScopeSpec) DeepCopy

func (in *ScopeSpec) DeepCopy() *ScopeSpec

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

func (*ScopeSpec) DeepCopyInto

func (in *ScopeSpec) DeepCopyInto(out *ScopeSpec)

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

type ScopeStatus

type ScopeStatus struct {
	common.StateFields `json:",inline"`
	// Namespace references the namespace of the scope
	Namespace string `json:"namespace,omitempty"`
	// ParentScope describes the parent scope, if empty the account
	// should be used as the top reference
	ParentScope string `json:"parentScope"`
	// ParentNamespace represents the namespace of the parent scope
	ParentNamespace string `json:"parentNamespace"`
	// Account describes the account this scope belongs to
	Account string `json:"account"`
}

ScopeStatus defines the observed state of Scope

func (*ScopeStatus) DeepCopy

func (in *ScopeStatus) DeepCopy() *ScopeStatus

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

func (*ScopeStatus) DeepCopyInto

func (in *ScopeStatus) DeepCopyInto(out *ScopeStatus)

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