kubernetes/staging/src/k8s.io/component-base/logs/api/v1/registry.go

var logRegistry

type logFormatRegistry

type logFormat

type RuntimeControl

type LogFormatFactory

// RegisterLogFormat registers support for a new logging format. This must be called
// before using any of the methods in LoggingConfiguration. The feature must
// be one of those defined in this package (typically LoggingAlphaOptions,
// LoggingBetaOptions or LoggingStableOptions).
func RegisterLogFormat(name string, factory LogFormatFactory, feature featuregate.Feature) error {}

func newLogFormatRegistry() *logFormatRegistry {}

// register adds a new log format. It's an error to modify an existing one.
func (lfr *logFormatRegistry) register(name string, format logFormat) error {}

// get specified log format factory
func (lfr *logFormatRegistry) get(name string) (*logFormat, error) {}

// list names of registered log formats, including feature gates (sorted)
func (lfr *logFormatRegistry) list() string {}

// freeze prevents further modifications of the registered log formats.
func (lfr *logFormatRegistry) freeze() {}