metal

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MPL-2.0 Imports: 28 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetalRetryPolicy

func MetalRetryPolicy(ctx context.Context, resp *http.Response, err error) (bool, error)

func Provider

func Provider() terraform.ResourceProvider

Types

type Config

type Config struct {
	AuthToken    string
	MaxRetries   int
	MaxRetryWait time.Duration
	// contains filtered or unexported fields
}

func (*Config) Client

func (c *Config) Client() *packngo.Client

Client returns a new client for accessing Equinix Metal's API.

type ErrorResponse

type ErrorResponse struct {
	StatusCode int
	Errors
	IsAPIError bool
}

type Errors

type Errors []string

func (Errors) Error

func (e Errors) Error() string

type NetworkInfo

type NetworkInfo struct {
	Networks       []map[string]interface{}
	IPv4SubnetSize int
	Host           string
	PublicIPv4     string
	PublicIPv6     string
	PrivateIPv4    string
}

Jump to

Keyboard shortcuts

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