Documentation
¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) CloseStreamsGracefully() error
- func (c *Client) Connect() error
- func (c *Client) Disconnect() error
- func (c *Client) IsConnected() bool
- func (c *Client) RegisterPlayCompletion() error
- func (c *Client) RegisterPlayError(err error) error
- func (c *Client) RegisterPlayStart(playbook, inventory string, variables map[string]string, executor string) error
- func (c *Client) UpdateTaskResult(taskResult *core.TaskResult) error
- func (c *Client) WaitForStreamsToFinish(timeout time.Duration) error
- type Config
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
}
Client represents a gRPC client for communicating with the Spage daemon
func (*Client) CloseStreamsGracefully ¶
CloseStreamsGracefully closes the streams gracefully, waiting for any pending data
func (*Client) Disconnect ¶
Disconnect closes the connection to the daemon
func (*Client) IsConnected ¶
IsConnected returns whether the client is connected to the daemon
func (*Client) RegisterPlayCompletion ¶
func (*Client) RegisterPlayError ¶
RegisterPlayError registers a play error with the daemon via streaming
func (*Client) RegisterPlayStart ¶
func (c *Client) RegisterPlayStart(playbook, inventory string, variables map[string]string, executor string) error
RegisterPlayStart registers the current play with the daemon via streaming
func (*Client) UpdateTaskResult ¶
func (c *Client) UpdateTaskResult(taskResult *core.TaskResult) error
UpdateTaskResult sends a task result update to the daemon
Click to show internal directories.
Click to hide internal directories.