package
0.0.0-20200321091321-bc8cfc345e21
Repository: https://github.com/wuka1/swarmkit.git
Documentation: pkg.go.dev
# Functions
ExpandConfigSpec expands the template inside the config payload, if any.
ExpandContainerSpec expands templated fields in the runtime using the task state and the node where it is scheduled to run.
ExpandSecretSpec expands the template inside the secret payload, if any.
NewContext returns a new template context from the data available in the task and the node where it is scheduled to run.
NewPayloadContextFromTask returns a new template context from the data available in the task and the node where it is scheduled to run.
NewTemplatedConfigGetter returns a ConfigGetter that evaluates templates.
NewTemplatedDependencyGetter returns a DependencyGetter that evaluates templates.
NewTemplatedSecretGetter returns a SecretGetter that evaluates templates.
# Structs
Context defines the strict set of values that can be injected into a template expression in SwarmKit data structure.
PayloadContext provides a context for expanding a config or secret payload.
Platform holds information about the underlying platform of the node.
# Interfaces
TemplatedConfigGetter is a ConfigGetter with an additional method to expose whether a config contains sensitive data.