Documentation
¶
Overview ¶
Package streamlogs implements 'agent stream-logs'.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Commands ¶
func Commands(globalParams *command.GlobalParams) []*cobra.Command
Commands returns a slice of subcommands for the 'agent' command.
func StreamLogs ¶
func StreamLogs(log log.Component, config config.Component, client ipc.HTTPClient, cliParams *CliParams) error
StreamLogs is a public function that can be used by other packages to stream logs.
Types ¶
type CliParams ¶
type CliParams struct {
*command.GlobalParams
// Output represents the output file path to write the log stream to.
FilePath string
// Duration represents the duration of the log stream.
Duration time.Duration
// Quiet represents whether the log stream should be quiet.
Quiet bool
// contains filtered or unexported fields
}
CliParams are the command-line arguments for this subcommand
Click to show internal directories.
Click to hide internal directories.