vlan

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFromVirtualNetwork

func CreateFromVirtualNetwork(d *v1alpha1.VirtualNetwork, projectID string) *packngo.VirtualNetworkCreateRequest

CreateFromVirtualNetwork return packngo.VirtualNetworkCreateRequest created from Kubernetes

func GenerateObservation

func GenerateObservation(vlan *packngo.VirtualNetwork) (v1alpha1.VirtualNetworkObservation, error)

GenerateObservation produces v1alpha1.VirtualNetworkObservation from packngo.VirtualNetwork

func IsUpToDate

IsUpToDate returns true if the supplied Kubernetes resource does not differ from the supplied Equinix Metal resource. It considers only fields that can be modified in place without deleting and recreating the instance, which are immutable.

func LateInitialize

func LateInitialize(in *v1alpha1.VirtualNetworkParameters, vlan *packngo.VirtualNetwork)

LateInitialize fills the empty fields in *v1alpha2.VirtualNetworkParameters with the values seen in packngo.VirtualNetwork

Types

type Client

Client implements the Equinix Metal API methods needed to interact with VirtualNetworks for the Equinix Metal Crossplane Provider

type ClientWithDefaults

type ClientWithDefaults interface {
	Client
	clients.DefaultGetter
}

ClientWithDefaults is an interface that provides VirtualNetwork services and provides default values for common properties

func NewClient

func NewClient(ctx context.Context, credentials []byte, projectID string) (ClientWithDefaults, error)

NewClient returns a Client implementing the Equinix Metal API methods needed to interact with VirtualNetworks for the Equinix Metal Crossplane Provider

type CredentialedClient

type CredentialedClient struct {
	Client
	*clients.Credentials
}

CredentialedClient is a credentialed client to Equinix Metal VirtualNetwork services

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL