equinix

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultBaseURL = "https://api.equinix.com"
	DefaultTimeout = 30
)
View Source
var (
	DeviceNetworkTypes   = []string{"layer3", "hybrid", "layer2-individual", "layer2-bonded"}
	DeviceNetworkTypesHB = []string{"layer3", "hybrid", "hybrid-bonded", "layer2-individual", "layer2-bonded"}
	NetworkTypeList      = strings.Join(DeviceNetworkTypes, ", ")
	NetworkTypeListHB    = strings.Join(DeviceNetworkTypesHB, ", ")
)

Functions

func MetalRetryPolicy

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

func Provider

func Provider() *schema.Provider

Provider returns Equinix terraform *schema.Provider

Types

type ClientPortResource

type ClientPortResource struct {
	Client   *packngo.Client
	Port     *packngo.Port
	Resource *schema.ResourceData
}

type Config

type Config struct {
	BaseURL        string
	AuthToken      string
	ClientID       string
	ClientSecret   string
	MaxRetries     int
	MaxRetryWait   time.Duration
	RequestTimeout time.Duration
	PageSize       int
	Token          string

	FabricAuthToken string
	// contains filtered or unexported fields
}

Config is the configuration structure used to instantiate the Equinix provider.

func (*Config) Load

func (c *Config) Load(ctx context.Context) error

Load function validates configuration structure fields and configures all required API clients.

type DumpTransport

type DumpTransport struct {
	// contains filtered or unexported fields
}

func (*DumpTransport) RoundTrip

func (d *DumpTransport) RoundTrip(h *http.Request) (*http.Response, error)

type ErrorResponse

type ErrorResponse struct {
	StatusCode int
	Errors
	IsAPIError bool
}

func (*ErrorResponse) Error

func (er *ErrorResponse) Error() string

type Errors

type Errors []string

func (Errors) Error

func (e Errors) Error() string

type MutexKV

type MutexKV struct {
	// contains filtered or unexported fields
}

MutexKV is a simple key/value store for arbitrary mutexes. It can be used to serialize changes across arbitrary collaborators that share knowledge of the keys they must serialize on.

The initial use case is to let aws_security_group_rule resources serialize their access to individual security groups based on SG ID.

func NewMutexKV

func NewMutexKV() *MutexKV

Returns a properly initalized MutexKV

func (*MutexKV) Lock

func (m *MutexKV) Lock(key string)

Locks the mutex for the given key. Caller is responsible for calling Unlock for the same key

func (*MutexKV) Unlock

func (m *MutexKV) Unlock(key string)

Unlock the mutex for the given key. Caller must have called Lock for the same key first

type NetworkInfo

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

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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