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 fallbackLimit; parts after it are optional. When no part declares fallbackLimit, 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.
type KeyPart ¶ added in v3.128.0
type KeyPart struct {
Arg string
Source Source
// FallbackLimit marks the fallback boundary: this part and every part before
// it are mandatory; parts after it are optional. At most one part may set it.
FallbackLimit bool
}
Click to show internal directories.
Click to hide internal directories.