Documentation ¶
Index ¶
- Constants
- Variables
- func Drivers() []string
- func FetchLogs(journalctlArgs []string) error
- func FluentdLogOptsValidate(logOptMap map[string]string) error
- func JSONFileLogOptsValidate(logOptMap map[string]string) error
- func JournalLogOptsValidate(logOptMap map[string]string) error
- func LogConfigFilePath(dataStore, ns, id string) string
- func Main(argv2 string) error
- func RegisterDriver(name string, f DriverFactory, validateFunc LogOpsValidateFunc)
- func SyslogOptsValidate(logOptMap map[string]string) error
- func ValidateFluentdLoggerOpts(config map[string]string) error
- func ValidateLogOpts(logDriver string, logOpts map[string]string) error
- type Driver
- type DriverFactory
- type FluentdLogger
- type JSONLogger
- type JournaldLogger
- type LogConfig
- type LogOpsValidateFunc
- type SyslogLogger
Constants ¶
View Source
const ( // MagicArgv1 is the magic argv1 for the containerd runtime v2 logging plugin mode. MagicArgv1 = "_NERDCTL_INTERNAL_LOGGING" LogPath = "log-path" MaxSize = "max-size" MaxFile = "max-file" Tag = "tag" )
Variables ¶
View Source
var FluentdLogOpts = []string{ fluentAddress, fluentdAsync, fluentdBufferLimit, fluentdRetryWait, fluentdMaxRetries, fluentdSubSecondPrecision, fluentdAsyncReconnectInterval, fluentRequestAck, Tag, }
View Source
var JSONDriverLogOpts = []string{ LogPath, MaxSize, MaxFile, }
View Source
var JournalDriverLogOpts = []string{ Tag, }
Functions ¶
func FluentdLogOptsValidate ¶ added in v0.22.1
func JSONFileLogOptsValidate ¶ added in v0.22.1
func JournalLogOptsValidate ¶ added in v0.22.1
func LogConfigFilePath ¶ added in v0.20.0
LogConfigFilePath returns the path of log-config.json
func Main ¶
Main is the entrypoint for the containerd runtime v2 logging plugin mode.
Should be called only if argv1 == MagicArgv1.
func RegisterDriver ¶ added in v0.21.0
func RegisterDriver(name string, f DriverFactory, validateFunc LogOpsValidateFunc)
func SyslogOptsValidate ¶ added in v1.0.0
func ValidateFluentdLoggerOpts ¶ added in v0.21.0
Types ¶
type Driver ¶ added in v0.21.0
type FluentdLogger ¶ added in v0.21.0
func (*FluentdLogger) Init ¶ added in v0.21.0
func (f *FluentdLogger) Init(dataStore, ns, id string) error
type JSONLogger ¶ added in v0.22.0
func (*JSONLogger) Init ¶ added in v0.22.0
func (jsonLogger *JSONLogger) Init(dataStore, ns, id string) error
type JournaldLogger ¶ added in v0.21.0
func (*JournaldLogger) Init ¶ added in v0.21.0
func (journaldLogger *JournaldLogger) Init(dataStore, ns, id string) error
type LogConfig ¶ added in v0.20.0
type LogConfig struct { Driver string `json:"driver"` Opts map[string]string `json:"opts,omitempty"` }
LogConfig is marshalled as "log-config.json"
type LogOpsValidateFunc ¶ added in v0.22.1
type SyslogLogger ¶ added in v1.0.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.