Versions in this module Expand all Collapse all v1 v1.0.0 Nov 30, 2022 Changes in this version + const DefaultOceHost + const HTTP + const HTTPS + func ErrorConnectionFailed(host string) error + func IsErrConfigNotFound(err error) bool + func IsErrConnectionFailed(err error) bool + func IsErrContainerNotFound(err error) bool + func IsErrImageNotFound(err error) bool + func IsErrNetworkNotFound(err error) bool + func IsErrNodeNotFound(err error) bool + func IsErrNotFound(err error) bool + func IsErrNotImplemented(err error) bool + func IsErrPluginNotFound(err error) bool + func IsErrPluginPermissionDenied(err error) bool + func IsErrSecretNotFound(err error) bool + func IsErrServiceNotFound(err error) bool + func IsErrTaskNotFound(err error) bool + func IsErrUnauthorized(err error) bool + func IsErrVolumeNotFound(err error) bool + func ParseHostURL(host string) (*url.URL, error) + type Client struct + func NewClient(host string, client *http.Client, httpHeaders map[string]string) (*Client, error) + func (cli *Client) Balance(ctx context.Context, req *types.Status) (exitResp *types.ChanExitResp, err error) + func (cli *Client) ChannelCreate(ctx context.Context, req *types.ChanCreate) (nodeID string, err error) + func (cli *Client) ChannelExit(ctx context.Context, req *types.ChanExit) (exitResp *types.ChanExitResp, err error) + func (cli *Client) ChannelJoin(ctx context.Context, req *types.ChanJoin) (nodeID string, err error) + func (cli *Client) Close() error + func (cli *Client) Health(ctx context.Context) (*types.Health, error) + func (cli *Client) Shutdown(ctx context.Context) error + func (cli *Client) Status(ctx context.Context, status *types.Status) error + func (cli *Client) Trade(ctx context.Context, trade *types.Trade) error + type HealthResponse struct + Data types.Health