forked from cloudfoundry-incubator/cflocal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
service.go
28 lines (24 loc) · 892 Bytes
/
service.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
package service
type Service struct {
Name string `json:"name" yaml:"name"`
Label string `json:"label" yaml:"label"`
Tags []string `json:"tags" yaml:"tags"`
Plan string `json:"plan" yaml:"plan"`
Credentials map[string]interface{} `json:"credentials" yaml:"credentials"`
SyslogDrainURL *string `json:"syslog_drain_url" yaml:"syslog_drain_url,omitempty"`
Provider *string `json:"provider" yaml:"provider,omitempty"`
VolumeMounts []string `json:"volume_mounts" yaml:"volume_mounts,omitempty"`
}
type Services map[string][]Service
type ForwardConfig struct {
Host string
Port string
User string
Code func() (string, error)
Forwards []Forward
}
type Forward struct {
Name string
From string
To string
}