Documentation ¶
Index ¶
- Constants
- func Cmd() *cobra.Command
- type Client
- func (c Client) CreateNode(hostname string, os OS, region Region) (string, error)
- func (c Client) DeleteNode(deviceID string) error
- func (c Client) GetNode(deviceID string) (*plan.Node, error)
- func (c Client) GetSSHAccessibleNode(deviceID string, timeout time.Duration, sshKey string) (*plan.Node, error)
- func (c Client) ListNodes() ([]plan.Node, error)
- type OS
- type Region
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { APIKey string ProjectID string SSHKey string // contains filtered or unexported fields }
Client for managing infrastructure on Packet
func (Client) CreateNode ¶
CreateNode creates a node in packet with the given hostname and OS
func (Client) DeleteNode ¶
DeleteNode deletes the node that matches the given ID
Click to show internal directories.
Click to hide internal directories.