logpassthrough

package
v4.19.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgPassable

type ArgPassable interface {
	// AsArgs outputs all fields that can be passed to a commandline.
	AsArgs() []string
}

type Bindable

type Bindable interface {
	// BindFlags binds all values against a given flag-set.
	BindFlags(fs *pflag.FlagSet)
}

type KlogOptions

type KlogOptions struct {
	// V is number for the log level verbosity
	V string
	// VModule is comma-separated list of pattern=N settings for file-filtered logging
	VModule string
}

KlogOptions contains a list of all passed options from the klog library

func (*KlogOptions) AsArgs

func (o *KlogOptions) AsArgs() []string

func (*KlogOptions) BindFlags

func (o *KlogOptions) BindFlags(fs *pflag.FlagSet)

type Options

type Options struct {
	VGManager *VGmanagerOptions
}

Options represents all pass-through options for logging verbosity

func NewOptions

func NewOptions() *Options

NewOptions creates a new option set and binds it's values against a given flagset.

func (*Options) BindFlags

func (o *Options) BindFlags(fs *pflag.FlagSet)

type VGmanagerOptions

type VGmanagerOptions struct {
	KlogOptions
	ZapOptions
}

func (*VGmanagerOptions) AsArgs

func (o *VGmanagerOptions) AsArgs() []string

func (*VGmanagerOptions) BindFlags

func (o *VGmanagerOptions) BindFlags(fs *pflag.FlagSet)

type ZapOptions

type ZapOptions struct {
	// ZapLogLevel is the Zap Level to configure the verbosity of logging. Can be one of 'debug', 'info', 'error', or any integer value > 0 which corresponds to custom debug levels of increasing verbosity
	ZapLogLevel string
}

ZapOptions contains a list of all passed options from zap-logging

func (*ZapOptions) AsArgs

func (o *ZapOptions) AsArgs() []string

func (*ZapOptions) BindFlags

func (o *ZapOptions) BindFlags(fs *pflag.FlagSet)

Jump to

Keyboard shortcuts

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