logs

package
v0.11.3-22-gb1faf135 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(ctx context.Context, opts *LogOptions, args ...string) error

Log retrieves the console output from a Unikraft Cloud service.

func Logs

func Logs(ctx context.Context, opts *LogOptions, args ...string) error

func NewCmd

func NewCmd() *cobra.Command

Types

type LogOptions

type LogOptions struct {
	Auth     *config.AuthConfig    `noattribute:"true"`
	Client   kraftcloud.KraftCloud `noattribute:"true"`
	Follow   bool                  `local:"true" long:"follow" short:"f" usage:"Follow the logs of the service every half second" default:"false"`
	Metro    string                `noattribute:"true"`
	NoPrefix bool                  `long:"no-prefix" usage:"When logging multiple machines, do not prefix each log line with the name"`
	Tail     int                   `local:"true" long:"tail" short:"n" usage:"Show the last given lines from the logs" default:"-1"`
	Token    string                `noattribute:"true"`
}

func (*LogOptions) Pre

func (opts *LogOptions) Pre(cmd *cobra.Command, _ []string) error

func (*LogOptions) Run

func (opts *LogOptions) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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