client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(client *http.Client, base string) *Client

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, pathElem []string) (*http.Response, error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, pathElem []string) (*http.Response, error)

func (*Client) Put

func (c *Client) Put(ctx context.Context, pathElem []string, contentType string, body io.Reader) (*http.Response, error)

type Env

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

func NewEnv

func NewEnv(client *Client) *Env

func (*Env) Delete

func (e *Env) Delete(ctx context.Context, envID string) error

func (*Env) Get

func (e *Env) Get(ctx context.Context, envID string) (entity.Env, error)

func (*Env) Register

func (e *Env) Register(ctx context.Context, envs []entity.Env) error

Jump to

Keyboard shortcuts

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