logs

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logs

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

func NewCmd

func NewCmd() *cobra.Command

Types

type LogsOptions

type LogsOptions struct {
	Auth        *config.AuthConfig    `noattribute:"true"`
	Client      kraftcloud.KraftCloud `noattribute:"true"`
	Composefile string                `noattribute:"true"`
	Follow      bool                  `long:"follow" short:"f" usage:"Follow log output"`
	Metro       string                `noattribute:"true"`
	Output      string                `long:"output" short:"o" usage:"Set output format. Options: table,yaml,json,list" default:"table"`
	Project     *compose.Project      `noattribute:"true"`
	Tail        int                   `long:"tail" short:"t" usage:"Number of lines to show from the end of the logs" default:"-1"`
	Token       string                `noattribute:"true"`
}

func (*LogsOptions) Pre

func (opts *LogsOptions) Pre(cmd *cobra.Command, args []string) error

func (*LogsOptions) Run

func (opts *LogsOptions) 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