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: 16 Imported by: 0

Documentation

Overview

+groupName=project.equinixmetal.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: project.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 ApiKey

type ApiKey struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ApiKeySpec   `json:"spec,omitempty"`
	Status            ApiKeyStatus `json:"status,omitempty"`
}

func (*ApiKey) DeepCopy

func (in *ApiKey) DeepCopy() *ApiKey

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

func (*ApiKey) DeepCopyInto

func (in *ApiKey) DeepCopyInto(out *ApiKey)

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

func (*ApiKey) DeepCopyObject

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

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

func (*ApiKey) SetupWebhookWithManager

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

func (*ApiKey) ValidateCreate

func (r *ApiKey) ValidateCreate() error

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

func (*ApiKey) ValidateDelete

func (r *ApiKey) ValidateDelete() error

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

func (*ApiKey) ValidateUpdate

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

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

type ApiKeyList

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

ApiKeyList is a list of ApiKeys

func (*ApiKeyList) DeepCopy

func (in *ApiKeyList) DeepCopy() *ApiKeyList

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

func (*ApiKeyList) DeepCopyInto

func (in *ApiKeyList) DeepCopyInto(out *ApiKeyList)

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

func (*ApiKeyList) DeepCopyObject

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

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

type ApiKeySpec

type ApiKeySpec struct {
	State *ApiKeySpecResource `json:"state,omitempty" tf:"-"`

	Resource ApiKeySpecResource `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 (*ApiKeySpec) DeepCopy

func (in *ApiKeySpec) DeepCopy() *ApiKeySpec

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

func (*ApiKeySpec) DeepCopyInto

func (in *ApiKeySpec) DeepCopyInto(out *ApiKeySpec)

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

type ApiKeySpecResource

type ApiKeySpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Description string for the API key
	Description *string `json:"description" tf:"description"`
	// UUID of project which the new API key is scoped to
	ProjectID *string `json:"projectID" tf:"project_id"`
	// Flag indicating whether the API key shoud be read-only
	ReadOnly *bool `json:"readOnly" tf:"read_only"`
	// API token for API clients
	// +optional
	Token *string `json:"-" sensitive:"true" tf:"token"`
}

func (*ApiKeySpecResource) DeepCopy

func (in *ApiKeySpecResource) DeepCopy() *ApiKeySpecResource

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

func (*ApiKeySpecResource) DeepCopyInto

func (in *ApiKeySpecResource) DeepCopyInto(out *ApiKeySpecResource)

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

type ApiKeyStatus

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

func (in *ApiKeyStatus) DeepCopy() *ApiKeyStatus

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

func (*ApiKeyStatus) DeepCopyInto

func (in *ApiKeyStatus) DeepCopyInto(out *ApiKeyStatus)

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

type Project

type Project struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ProjectSpec   `json:"spec,omitempty"`
	Status            ProjectStatus `json:"status,omitempty"`
}

func (*Project) DeepCopy

func (in *Project) DeepCopy() *Project

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

func (*Project) DeepCopyInto

func (in *Project) DeepCopyInto(out *Project)

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

func (*Project) DeepCopyObject

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

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

func (*Project) SetupWebhookWithManager

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

func (*Project) ValidateCreate

func (r *Project) ValidateCreate() error

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

func (*Project) ValidateDelete

func (r *Project) ValidateDelete() error

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

func (*Project) ValidateUpdate

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

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

type ProjectList

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

ProjectList is a list of Projects

func (*ProjectList) DeepCopy

func (in *ProjectList) DeepCopy() *ProjectList

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

func (*ProjectList) DeepCopyInto

func (in *ProjectList) DeepCopyInto(out *ProjectList)

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

func (*ProjectList) DeepCopyObject

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

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

type ProjectSpec

type ProjectSpec struct {
	State *ProjectSpecResource `json:"state,omitempty" tf:"-"`

	Resource ProjectSpecResource `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 (*ProjectSpec) DeepCopy

func (in *ProjectSpec) DeepCopy() *ProjectSpec

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

func (*ProjectSpec) DeepCopyInto

func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)

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

type ProjectSpecBgpConfig

type ProjectSpecBgpConfig struct {
	// Autonomous System Number for local BGP deployment
	Asn *int64 `json:"asn" tf:"asn"`
	// "local" or "global", the local is likely to be usable immediately, the global will need to be review by Equinix Metal engineers
	DeploymentType *string `json:"deploymentType" tf:"deployment_type"`
	// The maximum number of route filters allowed per server
	// +optional
	MaxPrefix *int64 `json:"maxPrefix,omitempty" tf:"max_prefix"`
	// Password for BGP session in plaintext (not a checksum)
	// +optional
	Md5 *string `json:"-" sensitive:"true" tf:"md5"`
	// Status of BGP configuration in the project
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
}

func (*ProjectSpecBgpConfig) DeepCopy

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

func (*ProjectSpecBgpConfig) DeepCopyInto

func (in *ProjectSpecBgpConfig) DeepCopyInto(out *ProjectSpecBgpConfig)

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

type ProjectSpecBgpConfigCodec

type ProjectSpecBgpConfigCodec struct {
}

+k8s:deepcopy-gen=false

func (ProjectSpecBgpConfigCodec) Decode

func (ProjectSpecBgpConfigCodec) Encode

func (ProjectSpecBgpConfigCodec) IsEmpty

type ProjectSpecResource

type ProjectSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Enable or disable [Backend Transfer](https://metal.equinix.com/developers/docs/networking/backend-transfer/), default is false
	// +optional
	BackendTransfer *bool `json:"backendTransfer,omitempty" tf:"backend_transfer"`
	// Optional BGP settings. Refer to [Equinix Metal guide for BGP](https://metal.equinix.com/developers/docs/networking/local-global-bgp/)
	// +optional
	BgpConfig *ProjectSpecBgpConfig `json:"bgpConfig,omitempty" tf:"bgp_config"`
	// The timestamp for when the project was created
	// +optional
	Created *string `json:"created,omitempty" tf:"created"`
	// The name of the project
	Name *string `json:"name" tf:"name"`
	// The UUID of organization under which you want to create the project. If you leave it out, the project will be create under your the default organization of your account
	// +optional
	OrganizationID *string `json:"organizationID,omitempty" tf:"organization_id"`
	// The UUID of payment method for this project. The payment method and the project need to belong to the same organization (passed with organization_id, or default)
	// +optional
	PaymentMethodID *string `json:"paymentMethodID,omitempty" tf:"payment_method_id"`
	// The timestamp for the last time the project was updated
	// +optional
	Updated *string `json:"updated,omitempty" tf:"updated"`
}

func (*ProjectSpecResource) DeepCopy

func (in *ProjectSpecResource) DeepCopy() *ProjectSpecResource

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

func (*ProjectSpecResource) DeepCopyInto

func (in *ProjectSpecResource) DeepCopyInto(out *ProjectSpecResource)

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

type ProjectStatus

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

func (in *ProjectStatus) DeepCopy() *ProjectStatus

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

func (*ProjectStatus) DeepCopyInto

func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus)

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

type SshKey

type SshKey struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SshKeySpec   `json:"spec,omitempty"`
	Status            SshKeyStatus `json:"status,omitempty"`
}

func (*SshKey) DeepCopy

func (in *SshKey) DeepCopy() *SshKey

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

func (*SshKey) DeepCopyInto

func (in *SshKey) DeepCopyInto(out *SshKey)

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

func (*SshKey) DeepCopyObject

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

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

func (*SshKey) SetupWebhookWithManager

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

func (*SshKey) ValidateCreate

func (r *SshKey) ValidateCreate() error

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

func (*SshKey) ValidateDelete

func (r *SshKey) ValidateDelete() error

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

func (*SshKey) ValidateUpdate

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

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

type SshKeyList

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

SshKeyList is a list of SshKeys

func (*SshKeyList) DeepCopy

func (in *SshKeyList) DeepCopy() *SshKeyList

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

func (*SshKeyList) DeepCopyInto

func (in *SshKeyList) DeepCopyInto(out *SshKeyList)

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

func (*SshKeyList) DeepCopyObject

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

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

type SshKeySpec

type SshKeySpec struct {
	State *SshKeySpecResource `json:"state,omitempty" tf:"-"`

	Resource SshKeySpecResource `json:"resource" tf:"resource"`

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

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

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

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

func (*SshKeySpec) DeepCopy

func (in *SshKeySpec) DeepCopy() *SshKeySpec

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

func (*SshKeySpec) DeepCopyInto

func (in *SshKeySpec) DeepCopyInto(out *SshKeySpec)

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

type SshKeySpecResource

type SshKeySpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The timestamp for when the SSH key was created
	// +optional
	Created *string `json:"created,omitempty" tf:"created"`
	// The fingerprint of the SSH key
	// +optional
	Fingerprint *string `json:"fingerprint,omitempty" tf:"fingerprint"`
	// The name of the SSH key for identification
	Name *string `json:"name" tf:"name"`
	// The UUID of the Equinix Metal API User who owns this key
	// +optional
	OwnerID *string `json:"ownerID,omitempty" tf:"owner_id"`
	// The ID of parent project
	ProjectID *string `json:"projectID" tf:"project_id"`
	// The public key. If this is a file, it
	PublicKey *string `json:"publicKey" tf:"public_key"`
	// The timestamp for the last time the SSH key was updated
	// +optional
	Updated *string `json:"updated,omitempty" tf:"updated"`
}

func (*SshKeySpecResource) DeepCopy

func (in *SshKeySpecResource) DeepCopy() *SshKeySpecResource

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

func (*SshKeySpecResource) DeepCopyInto

func (in *SshKeySpecResource) DeepCopyInto(out *SshKeySpecResource)

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

type SshKeyStatus

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

func (in *SshKeyStatus) DeepCopy() *SshKeyStatus

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

func (*SshKeyStatus) DeepCopyInto

func (in *SshKeyStatus) DeepCopyInto(out *SshKeyStatus)

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