logs

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCloudResourceLogsCommand added in v0.4.0

func NewCloudResourceLogsCommand(factory cmd.Factory) *cobra.Command

NewCloudResourceLogsCommand returns a new instance of the get command

func NewCommand

func NewCommand(factory cmd.Factory) *cobra.Command

NewCommand returns a new instance of the get command

func NewConfigurationLogsCommand added in v0.4.0

func NewConfigurationLogsCommand(factory cmd.Factory) *cobra.Command

NewConfigurationLogsCommand returns a new instance of the get command

Types

type CloudResourceLogsCommand added in v0.4.0

type CloudResourceLogsCommand struct {
	cmd.Factory
	// Name is the name of the cloudresource
	Name string
	// Namespace is the namespace of the cloudresource
	Namespace string
	// Stage is the stage to show logs for
	Stage string
	// Follow indicates we should follow the logs
	Follow bool
	// WaitInterval is the interval to wait for the logs
	WaitInterval time.Duration
}

CloudResourceLogsCommand defines the struct for running the command

func (*CloudResourceLogsCommand) Run added in v0.4.0

Run is called to implement the action

type Command

type Command struct {
	cmd.Factory
	// Name is the name of the resource
	Name string
	// Namespace is the namespace of the resource
	Namespace string
	// Follow indicates we should follow the logs
	Follow bool
	// Stage override the stage to look for
	Stage string
	// WaitInterval is the interval to wait for the logs
	WaitInterval time.Duration
}

Command represents the options

func (*Command) Run

func (o *Command) Run(ctx context.Context) error

Run executes the command

Jump to

Keyboard shortcuts

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