packet

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: Apache-2.0 Imports: 5 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 struct {
	// contains filtered or unexported fields
}

Client wrapper to use for interaction with packet

func NewPacketClient

func NewPacketClient(apiTokenPath, projectName string) (*Client, error)

NewPacketClient creates new client

func (*Client) CreateInstance

func (c *Client) CreateInstance(name, zone, machineType, ipxeURL string) error

CreateInstance creates new instance on packet with ipxe

func (*Client) DeleteInstance

func (c *Client) DeleteInstance(name string) error

DeleteInstance removes instance from packet

func (*Client) GetInstanceNatIP

func (c *Client) GetInstanceNatIP(name string) (string, error)

GetInstanceNatIP returns IP of packet server

Jump to

Keyboard shortcuts

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