cached

package
v0.0.0-...-da31dff Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0, 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

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

ConfigMap fetches a config map by id

func (*Client) DestroyServer

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

DestroyServer removes a server by id

func (*Client) DestroyServerGroup

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