Documentation
¶
Index ¶
- type Client
- func (c *Client) AvailableEvents(id string) (*pb.EventsResponse, error)
- func (c *Client) CancelJob(id, jobId string) (*pb.JobResponse, error)
- func (c *Client) GetActiveJob(id string) (*pb.JobResponse, error)
- func (c *Client) GetConfiguration(id string) (*pb.ConfigurationResponse, error)
- func (c *Client) GetJob(id, jobId string) (*pb.JobResponse, error)
- func (c *Client) GetJobs(id string) (*pb.JobsResponse, error)
- func (c *Client) GetModule(id string) (*pb.ModuleResponse, error)
- func (c *Client) GetModules(id string) (*pb.ModulesResponse, error)
- func (c *Client) GetProperties(id string, keys []string) (*pb.PropertiesResponse, error)
- func (c *Client) GetProperty(id, key string) (*pb.PropertyResponse, error)
- func (c *Client) GetSettings(id string) (*pb.SettingsResponse, error)
- func (c *Client) GetStatus(id string) (*pb.StatusResponse, error)
- func (c *Client) SetProperties(id string, properties map[string]string) (*pb.PropertiesResponse, error)
- func (c *Client) SetProperty(id, key, value string) (*pb.PropertyResponse, error)
- func (c *Client) SubmitJob(id, jobName, jobValue string, jobProperties map[string]string) (*pb.JobResponse, error)
- type Handler
- type HandlerCallback
- type Job
- type JobQueue
- type Service
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 (*Client) AvailableEvents ¶
func (c *Client) AvailableEvents(id string) (*pb.EventsResponse, error)
Request all events that a service can raise TODO: v2 -> use Request
func (*Client) CancelJob ¶
func (c *Client) CancelJob(id, jobId string) (*pb.JobResponse, error)
Request cancel for a job that's running or queued on a service TODO: v2 -> use JobRequest
func (*Client) GetActiveJob ¶
func (c *Client) GetActiveJob(id string) (*pb.JobResponse, error)
Request the active job of a service TODO: v2 -> use Request
func (*Client) GetConfiguration ¶
func (c *Client) GetConfiguration(id string) (*pb.ConfigurationResponse, error)
Request the configuration of a service TODO: v2 -> use Request
func (*Client) GetJob ¶
func (c *Client) GetJob(id, jobId string) (*pb.JobResponse, error)
Request information about a job that's running or queued TODO: v2 -> use JobRequest
func (*Client) GetJobs ¶
func (c *Client) GetJobs(id string) (*pb.JobsResponse, error)
Request all jobs running or queued on a service TODO: v2 -> use Request
func (*Client) GetModule ¶
func (c *Client) GetModule(id string) (*pb.ModuleResponse, error)
Request information about a single module TODO: v2 -> use Request
func (*Client) GetModules ¶
func (c *Client) GetModules(id string) (*pb.ModulesResponse, error)
Request all modules registered with the service TODO: v2 -> use Request
func (*Client) GetProperties ¶
Request a list of properties from a service
func (*Client) GetProperty ¶
func (c *Client) GetProperty(id, key string) (*pb.PropertyResponse, error)
Request a single property from a service
func (*Client) GetSettings ¶
func (c *Client) GetSettings(id string) (*pb.SettingsResponse, error)
Request the settings of a service TODO: v2 -> use Request
func (*Client) GetStatus ¶
func (c *Client) GetStatus(id string) (*pb.StatusResponse, error)
Request the status of a service TODO: v2 -> use Request or StatusRequest
func (*Client) SetProperties ¶
func (c *Client) SetProperties(id string, properties map[string]string) (*pb.PropertiesResponse, error)
Request a change of multiple properties by a service
func (*Client) SetProperty ¶
func (c *Client) SetProperty(id, key, value string) (*pb.PropertyResponse, error)
Request a change of a single property by a service
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler() *Handler
func (*Handler) AddCallback ¶
func (h *Handler) AddCallback(name string, callback HandlerCallback)
type HandlerCallback ¶
type JobQueue ¶
type JobQueue struct {
// contains filtered or unexported fields
}
func NewJobQueue ¶
func NewJobQueue() *JobQueue
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) RegisterCallback ¶
func (s *Service) RegisterCallback(name string, callback HandlerCallback)