client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: MIT Imports: 10 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 {
	Connection interface{}
	// contains filtered or unexported fields
}

Client is used to make service calls over gRPC and ZeroMQ

func NewClient

func NewClient(service string, protocol string) (client *Client, err error)

NewClient creates a new Client type

func (*Client) GetChannel

func (c *Client) GetChannel(id string) (err error)

GetChannel reads a channel by ID from the service and prints the result to stdout

func (*Client) GetChannels

func (c *Client) GetChannels() (err error)

GetChannels reads all channels from the service and prints the result to stdout

func (*Client) GetConfiguration

func (c *Client) GetConfiguration() (err error)

GetConfiguration reads the service configuration and prints the result to stdout

func (*Client) GetJob

func (c *Client) GetJob(id string) (err error)

GetJob reads a job by ID from the service and prints the result to stdout

func (*Client) GetJobStatus

func (c *Client) GetJobStatus(id string) (err error)

GetJobStatus reads a job status by ID from the service and prints the result to stdout

func (*Client) GetJobs

func (c *Client) GetJobs() (err error)

GetJobs reads all jobs from the service and prints the result to stdout

func (*Client) GetModule

func (c *Client) GetModule(id string) (err error)

GetModule reads a module by ID from the service and prints the result to stdout

func (*Client) GetModuleActiveJob

func (c *Client) GetModuleActiveJob(id string) (err error)

GetModuleActiveJob reads the active job of a module for a given ID from the service and prints the result to stdout

func (*Client) GetModuleConfiguration

func (c *Client) GetModuleConfiguration(id string) (err error)

GetModuleConfiguration reads a module configuration by ID from the service and prints the result to stdout

func (*Client) GetModuleJobs

func (c *Client) GetModuleJobs(id string) (err error)

GetModuleJobs reads all jobs of a module for a given ID from the service and prints the result to stdout

func (*Client) GetModuleSettings

func (c *Client) GetModuleSettings(id string) (err error)

GetModuleSettings reads the settings of a module for a given ID from the service and prints the result to stdout

func (*Client) GetModuleStatus

func (c *Client) GetModuleStatus(id string) (err error)

GetModuleStatus reads the status of a module for a given ID from the service and prints the result to stdout

func (*Client) GetModules

func (c *Client) GetModules() (err error)

GetModules reads all modules from the service and prints the result to stdout

func (*Client) GetSettings

func (c *Client) GetSettings() (err error)

GetSettings reads the service settings and prints the result to stdout

func (*Client) GetStatus

func (c *Client) GetStatus() (err error)

GetStatus reads the service status and prints the result to stdout

func (*Client) ModuleAvailableEvents

func (c *Client) ModuleAvailableEvents(id string) (err error)

ModuleAvailableEvents reads all events that are provided by a module for a given ID from the service and prints the result to stdout

func (*Client) ModuleCancelJob

func (c *Client) ModuleCancelJob(id string, jobID string) (err error)

ModuleCancelJob attempts to cancel the job of a module for a given module and job ID from the service and prints the result to stdout

func (*Client) ModuleSubmitEvent

func (c *Client) ModuleSubmitEvent(id string) (err error)

ModuleSubmitEvent requests an event change by a module for a given ID from the service and prints the result to stdout

type ConfigureClient

type ConfigureClient struct {
	Connection pb.ConfigureEndpointClient
}

Client is used to make service calls over gRPC and ZeroMQ

func NewConfigureClient

func NewConfigureClient() (client *ConfigureClient, err error)

NewClient creates a new Client type

func (*ConfigureClient) Create

func (c *ConfigureClient) Create(namespace string) (err error)

func (*ConfigureClient) Delete

func (c *ConfigureClient) Delete(id string, namespace string) (err error)

func (*ConfigureClient) List

func (c *ConfigureClient) List(namespace string) (err error)

func (*ConfigureClient) ListAll

func (c *ConfigureClient) ListAll() (err error)

func (*ConfigureClient) Read

func (c *ConfigureClient) Read(id string, namespace string) (err error)

func (*ConfigureClient) Update

func (c *ConfigureClient) Update(id string, namespace string) (err error)

Jump to

Keyboard shortcuts

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