github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/cf/models/service_offering.go (about) 1 package models 2 3 type ServiceOfferingFields struct { 4 GUID string 5 BrokerGUID string 6 Label string 7 Provider string 8 Version string 9 Description string 10 DocumentationURL string 11 Requires []string 12 } 13 14 type ServiceOffering struct { 15 ServiceOfferingFields 16 Plans []ServicePlanFields 17 } 18 19 type ServiceOfferings []ServiceOffering 20 21 func (s ServiceOfferings) Len() int { 22 return len(s) 23 } 24 25 func (s ServiceOfferings) Swap(i, j int) { 26 s[i], s[j] = s[j], s[i] 27 } 28 29 func (s ServiceOfferings) Less(i, j int) bool { 30 return s[i].Label < s[j].Label 31 }