cached

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 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 Connect

func Connect(ctx context.Context, config brightbox.Oauth2) (*Client, error)

Connect allocates and configures a Client for interacting with the API.

func (*Client) ConfigMap

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

ConfigMap fetches a config map by id

func (*Client) DestroyServer

func (c *Client) DestroyServer(ctx context.Context, identifier string) (*brightbox.Server, error)

DestroyServer removes a server by id

func (*Client) DestroyServerGroup

func (c *Client) DestroyServerGroup(ctx context.Context, identifier string) (*brightbox.ServerGroup, error)

DestroyServerGroup removes a server group by id

func (*Client) Server

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

Server fetches a server by id

func (*Client) ServerGroup

func (c *Client) ServerGroup(ctx context.Context, 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