docker: github.com/docker/docker/daemon/logger/loggerutils/cache Index | Files

package cache

import "github.com/docker/docker/daemon/logger/loggerutils/cache"

Index

Package Files

local_cache.go validate.go

Constants

const (
    // DriverName is the name of the driver used for local log caching
    DriverName = local.Name
)

func MergeDefaultLogConfig Uses

func MergeDefaultLogConfig(dst, defaults map[string]string)

MergeDefaultLogConfig reads the default log opts and makes sure that any caching related keys that exist there are added to dst.

func ShouldUseCache Uses

func ShouldUseCache(cfg map[string]string) bool

ShouldUseCache reads the log opts to determine if caching should be enabled

func WithLocalCache Uses

func WithLocalCache(l logger.Logger, info logger.Info) (logger.Logger, error)

WithLocalCache wraps the passed in logger with a logger caches all writes locally in addition to writing to the passed in logger.

Package cache imports 7 packages (graph) and is imported by 2 packages. Updated 2021-01-25. Refresh now. Tools for package owners.