Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultDeployParams ¶
func NewDefaultDeployParams() []string
func NewDefaultLaunchParams ¶
Types ¶
type AppConfig ¶
type AppConfig struct { App string `yaml:"app" toml:"app"` Org string `yaml:"org" toml:"org"` PrimaryRegion string `yaml:"primary_region" toml:"primary_region"` Source Source `yaml:"source" toml:"source"` Services []Service `yaml:"services" toml:"services"` LaunchParams []string `yaml:"launch_params" toml:"launch_params"` DeployParams []string `yaml:"deploy_params" toml:"deploy_params"` Env map[string]string `yaml:"env" toml:"env"` }
func (*AppConfig) Validate ¶
func (a *AppConfig) Validate(options ...ValidateAppConfigOptions) error
type Concurrency ¶
type GitRef ¶
type ProjectConfig ¶
type ProjectConfig struct { // Name Required. Name of the project Project string `yaml:"project" toml:"project"` // Source Required. Where the app configs of the project are located Source Source `yaml:"source" toml:"source"` }
func (*ProjectConfig) Validate ¶
func (cfg *ProjectConfig) Validate() error
type Service ¶
type Service struct { InternalPort int `yaml:"internal_port" toml:"internal_port"` Protocol string `yaml:"protocol" toml:"protocol"` ForceHttps bool `yaml:"force_https" toml:"force_https"` AutoStopMachines bool `yaml:"auto_stop_machines" toml:"auto_stop_machines"` AutoStartMachines bool `yaml:"auto_start_machines" toml:"auto_start_machines"` MinMachinesRunning int `yaml:"min_machines_running" toml:"min_machines_running"` Concurrency Concurrency `yaml:"concurrency" toml:"concurrency"` Ports []Port `yaml:"ports" toml:"ports"` }
func NewDefaultServiceConfig ¶
func NewDefaultServiceConfig() Service
type Source ¶
type Source struct { Repo string `yaml:"repo" toml:"repo"` Path string `yaml:"path" toml:"path"` Ref GitRef `yaml:"ref" toml:"ref"` Type SourceType `yaml:"type" toml:"type"` Inline string `yaml:"inline" toml:"inline"` }
func NewGitSource ¶
func NewLocalFolderSource ¶
type SourceType ¶
type SourceType string
const ( SourceTypeGit SourceType = "git" SourceTypeLocal SourceType = "local" SourceTypeDocker SourceType = "docker" SourceTypeInlineDockerFile SourceType = "inline-docker-file" )
type ValidateAppConfigOptions ¶
type ValidateAppConfigOptions struct {
ValidateSource bool
}
func NewValidateAppConfigOptions ¶
func NewValidateAppConfigOptions() ValidateAppConfigOptions
func (ValidateAppConfigOptions) WithValidateSource ¶
func (opts ValidateAppConfigOptions) WithValidateSource(validateSource ...bool) ValidateAppConfigOptions
Click to show internal directories.
Click to hide internal directories.