package cache
import "github.com/docker/docker/daemon/logger/loggerutils/cache"
Index ¶
- Constants
- func MergeDefaultLogConfig(dst, defaults map[string]string)
- func ShouldUseCache(cfg map[string]string) bool
- func WithLocalCache(l logger.Logger, info logger.Info) (logger.Logger, error)
Constants ¶
const ( // DriverName is the name of the driver used for local log caching DriverName = local.Name )
Functions ¶
func MergeDefaultLogConfig ¶
MergeDefaultLogConfig reads the default log opts and makes sure that any caching related keys that exist there are added to dst.
func ShouldUseCache ¶
ShouldUseCache reads the log opts to determine if caching should be enabled
func WithLocalCache ¶
WithLocalCache wraps the passed in logger with a logger caches all writes locally in addition to writing to the passed in logger.
Source Files ¶
- Version
- v20.10.1+incompatible
- Published
- Dec 15, 2020
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 3 minutes ago –
Tools for package owners.