mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-12 06:11:03 -04:00
31 lines
594 B
Go
31 lines
594 B
Go
package swarm
|
|
|
|
import "os"
|
|
|
|
// Config represents a config.
|
|
type Config struct {
|
|
ID string
|
|
Meta
|
|
Spec ConfigSpec
|
|
}
|
|
|
|
// ConfigSpec represents a config specification from a config in swarm
|
|
type ConfigSpec struct {
|
|
Annotations
|
|
Data []byte `json:",omitempty"`
|
|
}
|
|
|
|
// ConfigReferenceFileTarget is a file target in a config reference
|
|
type ConfigReferenceFileTarget struct {
|
|
Name string
|
|
UID string
|
|
GID string
|
|
Mode os.FileMode
|
|
}
|
|
|
|
// ConfigReference is a reference to a config in swarm
|
|
type ConfigReference struct {
|
|
File *ConfigReferenceFileTarget
|
|
ConfigID string
|
|
ConfigName string
|
|
}
|