This repository has been archived by the owner on May 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.go
67 lines (56 loc) · 1.52 KB
/
project.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package pluginlib
type DomainExpose struct {
InternalPort int `yaml:"internal_port"`
ExternalPort int `yaml:"external_port"`
Service string
ProxyWebsocketLocations []string `yaml:"proxy_websocket_locations,omitempty"`
}
type DomainSecurityAuthentication struct {
Type string
Username string
Password string
}
type DomainSecurity struct {
Authentication []DomainSecurityAuthentication `yaml:"authentication,omitempty"`
}
type Domains struct {
Domain string
Expose []DomainExpose
Security DomainSecurity `yaml:"security,omitempty"`
}
type Registries struct {
Username string
Password string
Url string `yaml:"url,omitempty"`
}
type Container struct {
Registries []Registries
Services []ContainerService
}
type ContainerService struct {
Name string
image string
Volumes []ContainerServiceVolume `yaml:"volumes,omitempty"`
Hooks ContainerServiceHooks `yaml:"hooks,omitempty"`
VolumesFrom string `yaml:"volumes_from,omitempty"`
Environment map[string]string `yaml:"environment,omitempty"`
}
type ContainerServiceHooks struct {
ExecuteAfterSetup string `yaml:"execute_after_setup"`
ExecuteBeforeDestroy string `yaml:"execute_before_destroy"`
}
type ContainerServiceVolume struct {
Type string
Src string
Dest string
}
type Project struct {
Name string
Domains []Domains
Container Container
}
func GetProject() *Project {
// mock function
// behaviour is implemented in StackHead main repository
return nil
}