Documentation ¶
Index ¶
- Constants
- func Drivers() []string
- func FetchLogs(journalctlArgs []string) error
- func LogConfigFilePath(dataStore, ns, id string) string
- func Main(argv2 string) error
- func RegisterDriver(name string, f DriverFactory)
- func ValidateFluentdLoggerOpts(config map[string]string) error
- type Driver
- type DriverFactory
- type FluentdLogger
- type JournaldLogger
- type JsonLogger
- type LogConfig
Constants ¶
View Source
const ( // MagicArgv1 is the magic argv1 for the containerd runtime v2 logging plugin mode. MagicArgv1 = "_NERDCTL_INTERNAL_LOGGING" MaxSize = "max-size" MaxFile = "max-file" Tag = "tag" )
Variables ¶
This section is empty.
Functions ¶
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)
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 JournaldLogger ¶ added in v0.21.0
func (*JournaldLogger) Init ¶ added in v0.21.0
func (journaldLogger *JournaldLogger) Init(dataStore, ns, id string) error
type JsonLogger ¶ added in v0.21.0
func (*JsonLogger) Init ¶ added in v0.21.0
func (jsonLogger *JsonLogger) Init(dataStore, ns, id string) error
Click to show internal directories.
Click to hide internal directories.