github.com/getong/docker@v1.13.1/api/types/swarm/secret.go (about) 1 package swarm 2 3 import "os" 4 5 // Secret represents a secret. 6 type Secret struct { 7 ID string 8 Meta 9 Spec SecretSpec 10 } 11 12 // SecretSpec represents a secret specification from a secret in swarm 13 type SecretSpec struct { 14 Annotations 15 Data []byte `json:",omitempty"` 16 } 17 18 // SecretReferenceFileTarget is a file target in a secret reference 19 type SecretReferenceFileTarget struct { 20 Name string 21 UID string 22 GID string 23 Mode os.FileMode 24 } 25 26 // SecretReference is a reference to a secret in swarm 27 type SecretReference struct { 28 File *SecretReferenceFileTarget 29 SecretID string 30 SecretName string 31 }