Versions in this module Expand all Collapse all v0 v0.0.2 Mar 20, 2022 v0.0.1 Mar 18, 2022 Changes in this version + const DefaultFileFormat + const DefaultFluentFormat + const DefaultHTTPFormat + const DefaultStderrFormat + func AllChannels() []logpb.Channel + type ByteSize uint64 + func (x *ByteSize) UnmarshalYAML(fn func(interface{}) error) error + func (x ByteSize) IsZero() bool + func (x ByteSize) MarshalYAML() (interface{}, error) + func (x ByteSize) String() string + type CaptureFd2Config struct + Dir *string + Enable bool + MaxGroupSize *ByteSize + type ChannelFilters struct + AllChannels ChannelList + ChannelFilters map[logpb.Channel]logpb.Severity + Filters map[logpb.Severity]ChannelList + func SelectChannels(chs ...logpb.Channel) ChannelFilters + func (c *ChannelFilters) AddChannel(ch logpb.Channel, sev logpb.Severity) + func (c *ChannelFilters) UnmarshalYAML(fn func(interface{}) error) error + func (c *ChannelFilters) Validate(defSev logpb.Severity) error + func (c ChannelFilters) MarshalYAML() (interface{}, error) + type ChannelList struct + Channels []logpb.Channel + func (c *ChannelList) Set(v string) error + func (c *ChannelList) Sort() + func (c *ChannelList) UnmarshalYAML(fn func(interface{}) error) error + func (c ChannelList) HasChannel(ch logpb.Channel) bool + func (c ChannelList) MarshalYAML() (interface{}, error) + func (c ChannelList) String() string + func (c ChannelList) Type() string + type CommonBufferSinkConfig struct + FlushTriggerSize *ByteSize + MaxInFlight *int + MaxStaleness *time.Duration + type CommonBufferSinkConfigWrapper struct + func (w *CommonBufferSinkConfigWrapper) UnmarshalYAML(fn func(interface{}) error) error + func (w CommonBufferSinkConfigWrapper) IsNone() bool + func (w CommonBufferSinkConfigWrapper) MarshalYAML() (interface{}, error) + type CommonSinkConfig struct + Auditable *bool + Buffering CommonBufferSinkConfigWrapper + Criticality *bool + Filter logpb.Severity + Format *string + Redact *bool + Redactable *bool + type Config struct + CaptureFd2 CaptureFd2Config + FileDefaults FileDefaults + FluentDefaults FluentDefaults + HTTPDefaults HTTPDefaults + Sinks SinkConfig + func DefaultConfig() (c Config) + func DefaultStderrConfig() (c Config) + func (c *Config) Export(onlyChans ChannelList) (string, string) + func (c *Config) IterateDirectories(fn func(d string) error) error + func (c *Config) String() string + func (c *Config) Validate(defaultLogDir *string) (resErr error) + type FileDefaults struct + BufferedWrites *bool + Dir *string + FilePermissions *FilePermissions + MaxFileSize *ByteSize + MaxGroupSize *ByteSize + type FilePermissions uint + func (x *FilePermissions) UnmarshalYAML(fn func(interface{}) error) (err error) + func (x FilePermissions) IsZero() bool + func (x FilePermissions) MarshalYAML() (r interface{}, err error) + type FileSinkConfig struct + Channels ChannelFilters + type FluentDefaults struct + type FluentSinkConfig struct + Address string + Channels ChannelFilters + Net string + type HTTPDefaults struct + Address *string + DisableKeepAlives *bool + Method *HTTPSinkMethod + Timeout *time.Duration + UnsafeTLS *bool + type HTTPSinkConfig struct + Channels ChannelFilters + type HTTPSinkMethod string + func (HTTPSinkMethod) AllowedSet() []string + func (HTTPSinkMethod) Canonicalize(s string) string + func (hsm *HTTPSinkMethod) Accept(s string) + func (hsm *HTTPSinkMethod) UnmarshalYAML(fn func(interface{}) error) error + func (hsm HTTPSinkMethod) MarshalYAML() (interface{}, error) + type Holder struct + Config Config + func (*Holder) Type() string + func (h *Holder) Set(value string) error + func (h *Holder) String() string + type SinkConfig struct + FileGroups map[string]*FileSinkConfig + FluentServers map[string]*FluentSinkConfig + HTTPServers map[string]*HTTPSinkConfig + Stderr StderrSinkConfig + type StderrSinkConfig struct + Channels ChannelFilters + NoColor bool