workflows

package
v0.0.0-...-d8d72a7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URICheckHealth     = "/api/v1/health"
	URIProvisionDevice = "/api/v1/workflow/provision_external_device"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CheckHealth(ctx context.Context) error
	ProvisionExternalDevice(ctx context.Context, devID string, config map[string]string) error
}

Client is the workflows client

func NewClient

func NewClient(url string, opts ...*Options) Client

NewClient returns a new workflows client

type Options

type Options struct {
	Client *http.Client
}

func NewOptions

func NewOptions(opts ...*Options) *Options

func (*Options) SetClient

func (opts *Options) SetClient(client *http.Client) *Options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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