github.com/chasestarr/deis@v1.13.5-0.20170519182049-1d9e59fbdbfc/client/controller/api/domains.go (about) 1 package api 2 3 // Domain is the structure of the domain object. 4 type Domain struct { 5 App string `json:"app"` 6 Created string `json:"created"` 7 Domain string `json:"domain"` 8 Owner string `json:"owner"` 9 Updated string `json:"updated"` 10 } 11 12 type Domains []Domain 13 14 func (d Domains) Len() int { return len(d) } 15 func (d Domains) Swap(i, j int) { d[i], d[j] = d[j], d[i] } 16 func (d Domains) Less(i, j int) bool { return d[i].Domain < d[j].Domain } 17 18 // DomainCreateRequest is the structure of POST /v1/app/<app id>/domains/. 19 type DomainCreateRequest struct { 20 Domain string `json:"domain"` 21 }