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=connection.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: connection.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 Connection

type Connection struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ConnectionSpec   `json:"spec,omitempty"`
	Status            ConnectionStatus `json:"status,omitempty"`
}

func (*Connection) DeepCopy

func (in *Connection) DeepCopy() *Connection

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

func (*Connection) DeepCopyInto

func (in *Connection) DeepCopyInto(out *Connection)

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

func (*Connection) DeepCopyObject

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

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

func (*Connection) SetupWebhookWithManager

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

func (*Connection) ValidateCreate

func (r *Connection) ValidateCreate() error

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

func (*Connection) ValidateDelete

func (r *Connection) ValidateDelete() error

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

func (*Connection) ValidateUpdate

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

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

type ConnectionList

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

ConnectionList is a list of Connections

func (*ConnectionList) DeepCopy

func (in *ConnectionList) DeepCopy() *ConnectionList

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

func (*ConnectionList) DeepCopyInto

func (in *ConnectionList) DeepCopyInto(out *ConnectionList)

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

func (*ConnectionList) DeepCopyObject

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

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

type ConnectionSpec

type ConnectionSpec struct {
	State *ConnectionSpecResource `json:"state,omitempty" tf:"-"`

	Resource ConnectionSpecResource `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 (*ConnectionSpec) DeepCopy

func (in *ConnectionSpec) DeepCopy() *ConnectionSpec

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

func (*ConnectionSpec) DeepCopyInto

func (in *ConnectionSpec) DeepCopyInto(out *ConnectionSpec)

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

type ConnectionSpecPorts

type ConnectionSpecPorts struct {
	// ID of the connection port resource
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// Port link status
	// +optional
	LinkStatus *string `json:"linkStatus,omitempty" tf:"link_status"`
	// Name of the connection port resource
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// Role - primary or secondary
	// +optional
	Role *string `json:"role,omitempty" tf:"role"`
	// Port speed in bits per second
	// +optional
	Speed *int64 `json:"speed,omitempty" tf:"speed"`
	// Port status
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// List of IDs of virtual circuits attached to this port
	// +optional
	VirtualCircuitIDS *map[string]string `json:"virtualCircuitIDS,omitempty" tf:"virtual_circuit_ids"`
}

func (*ConnectionSpecPorts) DeepCopy

func (in *ConnectionSpecPorts) DeepCopy() *ConnectionSpecPorts

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

func (*ConnectionSpecPorts) DeepCopyInto

func (in *ConnectionSpecPorts) DeepCopyInto(out *ConnectionSpecPorts)

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

type ConnectionSpecResource

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

	// Description of the connection resource
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// Facility where the connection will be created
	// +optional
	Facility *string `json:"facility,omitempty" tf:"facility"`
	// Metro where the connection will be created
	// +optional
	Metro *string `json:"metro,omitempty" tf:"metro"`
	// Mode for connections in IBX facilities with the dedicated type - standard or tunnel
	// +optional
	Mode *string `json:"mode,omitempty" tf:"mode"`
	// Name of the connection resource
	Name *string `json:"name" tf:"name"`
	// ID of the organization responsible for the connection
	// +optional
	// Deprecated
	OrganizationID *string `json:"organizationID,omitempty" tf:"organization_id"`
	// List of connection ports - primary (`ports[0]`) and secondary (`ports[1]`)
	// +optional
	Ports []ConnectionSpecPorts `json:"ports,omitempty" tf:"ports"`
	// ID of the project where the connection is scoped to, only used for type == "shared"
	ProjectID *string `json:"projectID" tf:"project_id"`
	// Connection redundancy - redundant or primary
	Redundancy *string `json:"redundancy" tf:"redundancy"`
	// Only used with shared connection. Type of service token to use for the connection, a_side or z_side.
	// +optional
	ServiceTokenType *string `json:"serviceTokenType,omitempty" tf:"service_token_type"`
	// Only used with shared connection. List of service tokens to use for the connection.
	// +optional
	ServiceTokens []ConnectionSpecServiceTokens `json:"serviceTokens,omitempty" tf:"service_tokens"`
	// Port speed. Allowed values are 50Mbps, 200Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps
	Speed *string `json:"speed" tf:"speed"`
	// Status of the connection resource
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// Tags attached to the connection
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// Fabric Token from the [Equinix Fabric Portal](https://ecxfabric.equinix.com/dashboard)
	// +optional
	// Deprecated
	Token *string `json:"token,omitempty" tf:"token"`
	// Connection type - dedicated or shared
	Type *string `json:"type" tf:"type"`
	// Only used with shared connection. Vlans to attach. Pass one vlan for Primary/Single connection and two vlans for Redundant connection.
	// +optional
	// +kubebuilder:validation:MaxItems=2
	Vlans []int64 `json:"vlans,omitempty" tf:"vlans"`
}

func (*ConnectionSpecResource) DeepCopy

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

func (*ConnectionSpecResource) DeepCopyInto

func (in *ConnectionSpecResource) DeepCopyInto(out *ConnectionSpecResource)

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

type ConnectionSpecServiceTokens added in v0.5.0

type ConnectionSpecServiceTokens struct {
	// Expiration date of the service token
	// +optional
	ExpiresAt *string `json:"expiresAt,omitempty" tf:"expires_at"`
	// ID of the service token
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// Maximum allowed speed for the service token
	// +optional
	MaxAllowedSpeed *string `json:"maxAllowedSpeed,omitempty" tf:"max_allowed_speed"`
	// Role of the service token
	// +optional
	Role *string `json:"role,omitempty" tf:"role"`
	// State of the service token
	// +optional
	State *string `json:"state,omitempty" tf:"state"`
	// Type of the service token, a_side or z_side
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
}

func (*ConnectionSpecServiceTokens) DeepCopy added in v0.5.0

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

func (*ConnectionSpecServiceTokens) DeepCopyInto added in v0.5.0

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

type ConnectionStatus

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

func (in *ConnectionStatus) DeepCopy() *ConnectionStatus

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

func (*ConnectionStatus) DeepCopyInto

func (in *ConnectionStatus) DeepCopyInto(out *ConnectionStatus)

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