source

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package source defines the abstraction for log emitters. It allows docklog to potentially support multiple log providers beyond Docker, such as Kubernetes, local files, or remote syslog streams.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogSource

type LogSource interface {
	// Run starts the log collection process and streams messages into logChan.
	// It should block until the context is canceled or a fatal error occurs.
	Run(ctx context.Context, logChan chan<- types.LogMessage) error
}

LogSource defines the contract for any component that generates log messages. Implementations are expected to be long-running and push messages into the provided channel until the context is canceled.

Directories

Path Synopsis
Package docker implements the LogSource interface for the Docker Engine.
Package docker implements the LogSource interface for the Docker Engine.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL