equinix

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, equinixProvider *EquinixProvider) error

func Delete

func Delete(ctx context.Context, equinixProvider *EquinixProvider) error

func GetDevpodInstance

func GetDevpodInstance(ctx context.Context, equinixProvider *EquinixProvider) (*metal.Device, *http.Response, error)

func GetIP4

func GetIP4(server *metal.Device) string

func Init

func Init(ctx context.Context, equinixProvider *EquinixProvider) error

func Start

func Start(ctx context.Context, equinixProvider *EquinixProvider) error

func Status

func Status(ctx context.Context, equinixProvider *EquinixProvider) (client.Status, error)

func Stop

func Stop(ctx context.Context, equinixProvider *EquinixProvider) error

Types

type EquinixProvider

type EquinixProvider struct {
	Config           *options.Options
	Client           *metal.APIClient
	Log              log.Logger
	WorkingDirectory string
}

func NewProvider

func NewProvider(logs log.Logger, init bool) (*EquinixProvider, error)

Jump to

Keyboard shortcuts

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