cached

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT 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 {
	brightbox.Client
	// contains filtered or unexported fields
}

Client is a cached brightbox Client

func NewClient

func NewClient(url string, account string, httpClient *http.Client) (*Client, error)

NewClient creates and returns a cached Client

func (*Client) ConfigMap added in v0.4.0

func (c *Client) ConfigMap(identifier string) (*brightbox.ConfigMap, error)

ConfigMap fetches a config map by id

func (*Client) DestroyServer added in v0.2.6

func (c *Client) DestroyServer(identifier string) error

DestroyServer removes a server by id

func (*Client) DestroyServerGroup added in v0.2.6

func (c *Client) DestroyServerGroup(identifier string) error

DestroyServerGroup removes a server group by id

func (*Client) Server

func (c *Client) Server(identifier string) (*brightbox.Server, error)

Server fetches a server by id

func (*Client) ServerGroup

func (c *Client) ServerGroup(identifier string) (*brightbox.ServerGroup, error)

ServerGroup fetches a server group by id

Jump to

Keyboard shortcuts

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