klogcontrol

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control struct {
	// contains filtered or unexported fields
}

Control implements runtime control for klog.

func Get

func Get() *Control

Get returns our singleton klog Control instance.

func (*Control) Configure

func (c *Control) Configure(options Options) error

Configure reconfigures klog with the given Options.

func (*Control) CurrentOptions

func (c *Control) CurrentOptions() Options

CurrentOptions returns the current klog configuration as Options.

func (*Control) Get

func (c *Control) Get(name string) (interface{}, error)

Get returns the current value of the given klog flag.

func (*Control) Set

func (c *Control) Set(name, value string) error

Set sets the value of the given klog flag.

type Options

type Options map[string]interface{}

Options captures runtime configuration for klog.

func (*Options) CloneFrom

func (o *Options) CloneFrom(src Options)

CloneFrom clones src to o.

func (*Options) String

func (o *Options) String() string

String returns a string representation of the Options.

Jump to

Keyboard shortcuts

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