forked from pivotal-cf/brokerapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresponse.go
49 lines (39 loc) · 1.4 KB
/
response.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
43
44
45
46
47
48
49
package brokerapi
type EmptyResponse struct{}
type ErrorResponse struct {
Error string `json:"error,omitempty"`
Description string `json:"description"`
}
type CatalogResponse struct {
Services []Service `json:"services"`
}
type ProvisioningResponse struct {
DashboardURL string `json:"dashboard_url,omitempty"`
OperationData string `json:"operation,omitempty"`
}
type UpdateResponse struct {
OperationData string `json:"operation,omitempty"`
}
type DeprovisionResponse struct {
OperationData string `json:"operation,omitempty"`
}
type LastOperationResponse struct {
State LastOperationState `json:"state"`
Description string `json:"description,omitempty"`
}
type ExperimentalVolumeMountBindingResponse struct {
Credentials interface{} `json:"credentials"`
SyslogDrainURL string `json:"syslog_drain_url,omitempty"`
RouteServiceURL string `json:"route_service_url,omitempty"`
VolumeMounts []ExperimentalVolumeMount `json:"volume_mounts,omitempty"`
}
type ExperimentalVolumeMount struct {
ContainerPath string `json:"container_path"`
Mode string `json:"mode"`
Private ExperimentalVolumeMountPrivate `json:"private"`
}
type ExperimentalVolumeMountPrivate struct {
Driver string `json:"driver"`
GroupID string `json:"group_id"`
Config string `json:"config"`
}