Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveCacheKey ¶ added in v3.128.0
ResolveCacheKey resolves each KeyPart to its concrete value and returns the flat wire shape the backend expects. A part is mandatory iff it is at or before the part declaring fallback_limit; parts after it are optional. When no part declares fallback_limit, every part is mandatory. At most one part may declare it (enforced by Validate).
Types ¶
type Cache ¶
type Cache struct {
// Name of the cache entry to save.
Name string `yaml:"name"`
// Key of the cache entry to save, this can be a template string.
CacheKey []KeyPart `yaml:"cache_key"`
// Target Paths to remove.
TargetPaths []string `yaml:"target_paths"`
}
func ExpandCacheConfiguration ¶
ExpandCacheConfiguration returns the cache definitions unchanged. Cache keys are resolved at send time (see ResolveCacheKey), so there is nothing to expand at load time.
Click to show internal directories.
Click to hide internal directories.