add supplemental container support
This commit is contained in:
@@ -1,9 +1,29 @@
|
||||
package pkg
|
||||
|
||||
type ProjectConfig struct {
|
||||
type Volume struct {
|
||||
Mountpoint string `json:"mountpoint,omitempty"`
|
||||
}
|
||||
|
||||
type Container struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
Url string `json:"url,omitempty"`
|
||||
Port uint16 `json:"port,omitempty"`
|
||||
EnvFile string `json:"env_file,omitempty"`
|
||||
ImageName string `json:"image,omitempty"`
|
||||
Volumes []Volume `json:"volumes,omitempty"`
|
||||
Environment []string `json:"environment,omitempty"`
|
||||
}
|
||||
|
||||
type ProjectConfig struct {
|
||||
// name of the app
|
||||
Name string `json:"name,omitempty"`
|
||||
// public url of the app
|
||||
// TODO: support multiple urls
|
||||
Url string `json:"url,omitempty"`
|
||||
// Port the web app listens on from the head container
|
||||
Port uint16 `json:"port,omitempty"`
|
||||
EnvFile string `json:"env_file,omitempty"`
|
||||
// additional environment variables
|
||||
Environment []string `json:"environment,omitempty"`
|
||||
// volumes for the head container
|
||||
Volumes []Volume `json:"volumes,omitempty"`
|
||||
// config for supplemental containersm
|
||||
Containers []Container `json:"containers,omitempty"`
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ type App struct {
|
||||
DeploymentStatus string `json:"deployment_status,omitempty"`
|
||||
}
|
||||
|
||||
// TODO: this should be flattened to an int, where 0 = disabled and any other number is the level
|
||||
type Compression struct {
|
||||
Enabled bool `json:"enabled"`
|
||||
Level int `json:"level,omitempty"`
|
||||
@@ -14,6 +15,7 @@ type Compression struct {
|
||||
|
||||
type Info struct {
|
||||
Compression Compression `json:"compression"`
|
||||
Version string `json:"version"`
|
||||
}
|
||||
|
||||
type DeploymentEvent struct {
|
||||
|
||||
3
pkg/version.go
Normal file
3
pkg/version.go
Normal file
@@ -0,0 +1,3 @@
|
||||
package pkg
|
||||
|
||||
const Version = "2bd953d"
|
||||
Reference in New Issue
Block a user