streamlogs

package
v0.0.0-...-1aa7a6f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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, 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

Jump to

Keyboard shortcuts

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