forked from pivotal-cf/brokerapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
catalog.go
42 lines (36 loc) · 1.33 KB
/
catalog.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package brokerapi
type Service struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Bindable bool `json:"bindable"`
PlanUpdatable bool `json:"plan_updateable"`
Plans []ServicePlan `json:"plans"`
Metadata ServiceMetadata `json:"metadata"`
Tags []string `json:"tags"`
}
type ServicePlan struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Metadata ServicePlanMetadata `json:"metadata"`
}
type ServicePlanMetadata struct {
Bullets []string `json:"bullets"`
DisplayName string `json:"displayName"`
}
type ServiceMetadata struct {
DisplayName string `json:"displayName"`
LongDescription string `json:"longDescription"`
DocumentationUrl string `json:"documentationUrl"`
SupportUrl string `json:"supportUrl"`
Listing ServiceMetadataListing `json:"listing"`
Provider ServiceMetadataProvider `json:"provider"`
}
type ServiceMetadataListing struct {
Blurb string `json:"blurb"`
ImageUrl string `json:"imageUrl"`
}
type ServiceMetadataProvider struct {
Name string `json:"name"`
}