github.com/technosophos/deis@v1.7.1-0.20150915173815-f9005256004b/client/controller/api/certs.go (about)

     1  package api
     2  
     3  // Cert is the definition of the cert object.
     4  // Some fields are omtempty because they are only
     5  // returned when creating or getting a cert.
     6  type Cert struct {
     7  	Updated string `json:"updated,omitempty"`
     8  	Created string `json:"created,omitempty"`
     9  	Name    string `json:"common_name"`
    10  	Expires string `json:"expires"`
    11  	Owner   string `json:"owner,omitempty"`
    12  	ID      int    `json:"id,omitempty"`
    13  }
    14  
    15  // CertCreateRequest is the definition of POST /v1/certs/.
    16  type CertCreateRequest struct {
    17  	Certificate string `json:"certificate"`
    18  	Key         string `json:"key"`
    19  	Name        string `json:"common_name,omitempty"`
    20  }