client

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 7 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 {
	// contains filtered or unexported fields
}

func New

func New(baseURL string, opts ...Option) (*Client, error)

func (*Client) Completion

func (self *Client) Completion(ctx context.Context, folder, device string,
) (*api.FolderCompletion, error)

func (*Client) Connections

func (self *Client) Connections(ctx context.Context) (*api.Connections, error)

func (*Client) DeviceStats

func (self *Client) DeviceStats(ctx context.Context) (
	map[string]api.DeviceStatistics, error,
)

func (*Client) Devices

func (self *Client) Devices(ctx context.Context) ([]api.DeviceConfiguration,
	error,
)

func (*Client) FolderErrors

func (self *Client) FolderErrors(ctx context.Context, folder string,
) ([]api.FileError, error)

func (*Client) Folders

func (self *Client) Folders(ctx context.Context) ([]api.FolderConfiguration,
	error,
)

func (*Client) Health

func (self *Client) Health(ctx context.Context) error

func (*Client) NewClientWithResponses

func (self *Client) NewClientWithResponses(moreOpts ...api.ClientOption) error

func (*Client) SystemErrors

func (self *Client) SystemErrors(ctx context.Context) ([]api.LogLine, error)

func (*Client) SystemStatus added in v0.0.3

func (self *Client) SystemStatus(ctx context.Context) (*api.SystemStatus,
	error,
)

func (*Client) WithKey

func (self *Client) WithKey(apiKey string) *Client

type Option

type Option func(c *Client) error

Directories

Path Synopsis
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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