actionlogs

package
v3.0.0-rc67 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

func StartOrchestrationLogs(c *client.T, ids []uuid.UUID, format string) (*ActionLogs, error)

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.

Jump to

Keyboard shortcuts

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