github.com/nullne/docker@v1.13.0-rc1/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  	Digest     string
    11  	SecretSize int64
    12  }
    13  
    14  // SecretSpec represents a secret specification from a secret in swarm
    15  type SecretSpec struct {
    16  	Annotations
    17  	Data []byte `json:",omitempty"`
    18  }
    19  
    20  // SecretReferenceFileTarget is a file target in a secret reference
    21  type SecretReferenceFileTarget struct {
    22  	Name string
    23  	UID  string
    24  	GID  string
    25  	Mode os.FileMode
    26  }
    27  
    28  // SecretReference is a reference to a secret in swarm
    29  type SecretReference struct {
    30  	SecretID   string
    31  	SecretName string
    32  	Target     *SecretReferenceFileTarget
    33  }