klogcontrol

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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