common.go 1.2 KB

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