Skip to content

Commit

Permalink
add experimental to config
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdfly authored and dangra committed Jan 25, 2023
1 parent f1f8527 commit 7d3bdeb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ type Config struct {
Checks map[string]*Check `toml:"checks,omitempty" json:"checks,omitempty"`
Mounts *scanner.Volume `toml:"mounts,omitempty" json:"mounts,omitempty"`
Processes map[string]string `toml:"processes,omitempty" json:"processes,omitempty"`
Experimental Experimental `toml:"experimental,omitempty" json:"experimental,omitempty"`
}

type Deploy struct {
Expand Down Expand Up @@ -290,6 +291,15 @@ type Build struct {
DockerBuildTarget string `toml:"build-target,omitempty"`
}

type Experimental struct {
Cmd []string `toml:"cmd,omitempty"`
Entrypoint []string `toml:"entrypoint,omitempty"`
Exec []string `toml:"exec,omitempty"`
AutoRollback bool `toml:"auto_rollback,omitempty"`
EnableConsul bool `toml:"enable_consul,omitempty"`
EnableEtcd bool `toml:"enable_etcd,omitempty"`
}

func (c *Config) HasDefinition() bool {
return len(c.Definition) > 0
}
Expand Down

0 comments on commit 7d3bdeb

Please sign in to comment.