client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedCode = errors.New("unexpected return code")
	ErrInvalidScheme  = errors.New("invalid scheme, use 'https' instead")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	GetRegistration() (api.RegistrationResponse, error)
	CreateHost(host api.HostCreateRequest) error
	DeleteHost(hostname string) error
	PatchHost(patch api.HostPatchRequest, hostname string) (api.HostResponse, error)
	GetBootstrap(hostname string) (api.BootstrapResponse, error)
}

func NewClient

func NewClient(fs vfs.FS, conf config.Config) (Client, error)

Jump to

Keyboard shortcuts

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