const timestampFormat …
const compressSuffix …
const tmpSuffix …
type ContainerLogManager …
type LogRotatePolicy …
func GetAllLogs(log string) ([]string, error) { … }
type compressReadCloser …
func (rc *compressReadCloser) Close() error { … }
func UncompressLog(log string) (_ io.ReadCloser, retErr error) { … }
func parseMaxSize(size string) (int64, error) { … }
type containerLogManager …
func NewContainerLogManager(runtimeService internalapi.RuntimeService, osInterface kubecontainer.OSInterface, maxSize string, maxFiles int, maxWorkers int, monitorInterval metav1.Duration) (ContainerLogManager, error) { … }
func (c *containerLogManager) Start() { … }
func (c *containerLogManager) Clean(ctx context.Context, containerID string) error { … }
func (c *containerLogManager) processQueueItems(ctx context.Context, worker int) { … }
func (c *containerLogManager) rotateLogs(ctx context.Context) error { … }
func (c *containerLogManager) processContainer(ctx context.Context, worker int) (ok bool) { … }
func (c *containerLogManager) rotateLog(ctx context.Context, id, log string) error { … }
func (c *containerLogManager) cleanupUnusedLogs(logs []string) ([]string, error) { … }
func filterUnusedLogs(logs []string) (inuse []string, unused []string) { … }
func isInUse(l string, logs []string) bool { … }
func (c *containerLogManager) removeExcessLogs(logs []string) ([]string, error) { … }
func (c *containerLogManager) compressLog(log string) error { … }
func (c *containerLogManager) rotateLatestLog(ctx context.Context, id, log string) error { … }