ports

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Assign(*packngo.PortAssignRequest) (*packngo.Port, *packngo.Response, error)
	Unassign(*packngo.PortAssignRequest) (*packngo.Port, *packngo.Response, error)
	GetPortByName(string, string) (*packngo.Port, error)
}

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

type ClientWithDefaults

type ClientWithDefaults interface {
	Client
	clients.DefaultGetter
}

ClientWithDefaults is an interface that provides Port 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 Ports for the Equinix Metal Crossplane Provider

type CredentialedClient

type CredentialedClient struct {
	Client
	*clients.Credentials
}

CredentialedClient is a credentialed client to Equinix Metal Port services

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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