mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
api/types/swarm: define type for RegistryAuthSource
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -207,8 +207,12 @@ type JobStatus struct {
|
||||
LastExecution time.Time `json:",omitempty"`
|
||||
}
|
||||
|
||||
// RegistryAuthSource defines options for the "registryAuthFrom" query parameter
|
||||
// on service update.
|
||||
type RegistryAuthSource string
|
||||
|
||||
// Values for RegistryAuthFrom in ServiceUpdateOptions
|
||||
const (
|
||||
RegistryAuthFromSpec = "spec"
|
||||
RegistryAuthFromPreviousSpec = "previous-spec"
|
||||
RegistryAuthFromSpec RegistryAuthSource = "spec"
|
||||
RegistryAuthFromPreviousSpec RegistryAuthSource = "previous-spec"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user