github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/api/types/swarm/common.go (about)

     1  package swarm // import "github.com/demonoid81/moby/api/types/swarm"
     2  
     3  import "time"
     4  
     5  // Version represents the internal object version.
     6  type Version struct {
     7  	Index uint64 `json:",omitempty"`
     8  }
     9  
    10  // Meta is a base object inherited by most of the other once.
    11  type Meta struct {
    12  	Version   Version   `json:",omitempty"`
    13  	CreatedAt time.Time `json:",omitempty"`
    14  	UpdatedAt time.Time `json:",omitempty"`
    15  }
    16  
    17  // Annotations represents how to describe an object.
    18  type Annotations struct {
    19  	Name   string            `json:",omitempty"`
    20  	Labels map[string]string `json:"Labels"`
    21  }
    22  
    23  // Driver represents a driver (network, logging, secrets backend).
    24  type Driver struct {
    25  	Name    string            `json:",omitempty"`
    26  	Options map[string]string `json:",omitempty"`
    27  }
    28  
    29  // TLSInfo represents the TLS information about what CA certificate is trusted,
    30  // and who the issuer for a TLS certificate is
    31  type TLSInfo struct {
    32  	// TrustRoot is the trusted CA root certificate in PEM format
    33  	TrustRoot string `json:",omitempty"`
    34  
    35  	// CertIssuer is the raw subject bytes of the issuer
    36  	CertIssuerSubject []byte `json:",omitempty"`
    37  
    38  	// CertIssuerPublicKey is the raw public key bytes of the issuer
    39  	CertIssuerPublicKey []byte `json:",omitempty"`
    40  }