client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 8 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 {
	*http.Client
	// contains filtered or unexported fields
}

func New

func New(config Config) *Client

func (*Client) CreateDeploy

func (c *Client) CreateDeploy(endpointID uuid.UUID, blob io.Reader, params api.CreateDeployParams) (*types.Deploy, error)

func (*Client) CreateEndpoint

func (c *Client) CreateEndpoint(params api.CreateEndpointParams) (*types.Endpoint, error)

func (*Client) ListEndpoints

func (c *Client) ListEndpoints() ([]types.Endpoint, error)

func (*Client) RollbackEndpoint

func (c *Client) RollbackEndpoint(endpointID uuid.UUID, params api.CreateRollbackParams) (*api.CreateRollbackResponse, error)

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() Config

func (Config) WithURL

func (c Config) WithURL(url string) Config

Jump to

Keyboard shortcuts

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