client

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoStart

func AutoStart(ctx context.Context, client api.API) error

Types

type HTTP

type HTTP struct {
	Client *http.Client
	Base   *url.URL
}

func NewHTTP

func NewHTTP() *HTTP

func (*HTTP) Child

func (h *HTTP) Child(ctx context.Context, name string) (*api.ChildWithStatus, error)

Child implements api.API.

func (*HTTP) DeleteChild

func (h *HTTP) DeleteChild(ctx context.Context, name string) (*api.ChildWithStatus, error)

DeleteChild implements api.API.

func (*HTTP) Ping

func (h *HTTP) Ping(ctx context.Context) error

Ping implements api.API.

func (*HTTP) PutChild

func (h *HTTP) PutChild(ctx context.Context, child api.Child) (*api.ChildWithStatus, error)

PutChild implements api.API.

func (*HTTP) StartChild

func (h *HTTP) StartChild(ctx context.Context, name string) (*api.ChildWithStatus, error)

StartChild implements api.API.

func (*HTTP) StopChild

func (h *HTTP) StopChild(ctx context.Context, name string) (*api.ChildWithStatus, error)

StopChild implements api.API.

func (*HTTP) Summary

func (h *HTTP) Summary(ctx context.Context) ([]api.ChildSummary, error)

Summary implements api.API.

func (*HTTP) Terminate

func (h *HTTP) Terminate(ctx context.Context) error

Terminate implements api.API.

type HTTPError

type HTTPError = internal.HTTPError

Jump to

Keyboard shortcuts

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