Documentation
¶
Overview ¶
Package actionlogs streams the logs of an action asked of daemons, for what follows it, as they are logged. It is apart from the rest of the action routing so the objects can use it too.
Index ¶
- type ActionLogs
- func StartActionLogs(c *client.T, nodes []string, filters []string, format string) (*ActionLogs, error)
- func StartOrchestrationLogs(c *client.T, ids []uuid.UUID, format string) (*ActionLogs, error)
- func StartSessionLogs(c *client.T, nodes []string, sessionID uuid.UUID, format string) (*ActionLogs, error)
- func StartSessionLogsTo(c *client.T, nodes []string, sessionID uuid.UUID, format string, w io.Writer) (*ActionLogs, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionLogs ¶
type ActionLogs struct {
// contains filtered or unexported fields
}
ActionLogs streams the log entries of an action, from the nodes it runs on, as they are logged. It is what --follow shows of an action asked of a daemon, rather than the ids it answered with.
func StartActionLogs ¶
func StartActionLogs(c *client.T, nodes []string, filters []string, format string) (*ActionLogs, error)
StartActionLogs opens the streams of the log entries matching filters on nodes, and writes them, sorted by time, to the standard output in format until Stop. A node whose stream does not open is reported and skipped.
func StartOrchestrationLogs ¶
StartOrchestrationLogs opens the log streams of orchestrations on every node of the cluster, as StartActionLogs does: an orchestration may make any node act, and a node it does not reach streams nothing.
The streams open once the orchestrations are accepted, their ids being known then only, and show what they logged before from their history.
func StartSessionLogs ¶
func StartSessionLogs(c *client.T, nodes []string, sessionID uuid.UUID, format string) (*ActionLogs, error)
StartSessionLogs opens the log streams of a session on nodes, as StartActionLogs does.
func StartSessionLogsTo ¶
func StartSessionLogsTo(c *client.T, nodes []string, sessionID uuid.UUID, format string, w io.Writer) (*ActionLogs, error)
StartSessionLogsTo opens the log streams of a session on nodes, as StartSessionLogs does, and writes the entries to w rather than the standard output.
func (*ActionLogs) Stop ¶
func (t *ActionLogs) Stop()
Stop ends the streams, once the last entries of the action had the time to reach them, and returns when the entries read are written.