Documentation ¶
Index ¶
- Constants
- func ConfigDir() string
- func ConfigFileExistsAtPath(p string) (bool, error)
- func ConfigFilePath() string
- func GetAPIToken() string
- func InitConfig()
- func ResolveConfigFileFromPath(p string) (string, error)
- func SaveConfig() error
- type AppConfig
- func (ac *AppConfig) DockerBuildTarget() string
- func (ac *AppConfig) Dockerfile() string
- func (ac *AppConfig) GetEnvVariables() map[string]string
- func (ac *AppConfig) GetInternalPort() (int, error)
- func (ac *AppConfig) HasBuilder() bool
- func (ac *AppConfig) HasBuiltin() bool
- func (ac *AppConfig) HasDefinition() bool
- func (ac *AppConfig) HasServices() bool
- func (ac *AppConfig) Image() string
- func (ac *AppConfig) SetBuildSecrets(vals map[string]string)
- func (ac *AppConfig) SetDockerCommand(cmd string)
- func (ac *AppConfig) SetDockerEntrypoint(entrypoint string)
- func (ac *AppConfig) SetEnvVariable(name, value string)
- func (ac *AppConfig) SetEnvVariables(vals map[string]string)
- func (ac *AppConfig) SetInternalPort(port int) bool
- func (ac *AppConfig) SetKillSignal(signal string)
- func (ac *AppConfig) SetProcess(name, value string)
- func (ac *AppConfig) SetReleaseCommand(cmd string)
- func (ac *AppConfig) SetStatics(statics []scanner.Static)
- func (ac *AppConfig) SetVolumes(volumes []scanner.Volume)
- func (ac *AppConfig) WriteTo(w io.Writer, format ConfigFormat) error
- func (ac *AppConfig) WriteToFile(filename string) error
- type Build
- type Config
- type ConfigFormat
Constants ¶
View Source
const ( ConfigAPIToken = "access_token" ConfigAPIBaseURL = "api_base_url" ConfigAppName = "app" ConfigVerboseOutput = "verbose" ConfigJSONOutput = "json" ConfigBuiltinsfile = "builtins_file" ConfigGQLErrorLogging = "gqlerrorlogging" ConfigInstaller = "installer" BuildKitNodeID = "buildkit_node_id" ConfigWireGuardState = "wire_guard_state" ConfigWireGuardWebsockets = "wire_guard_websockets" ConfigRegistryHost = "registry_host" )
View Source
const NSRoot = "flyctl"
Variables ¶
This section is empty.
Functions ¶
func ConfigFileExistsAtPath ¶
func ConfigFilePath ¶ added in v0.0.233
func ConfigFilePath() string
ConfigFilePath - returns the path to the config file
func GetAPIToken ¶ added in v0.0.144
func GetAPIToken() string
GetAPIToken - returns the current API Token, env vars take precedence. Avoids pulling in env vars into the config.
func SaveConfig ¶
func SaveConfig() error
Types ¶
type AppConfig ¶
func LoadAppConfig ¶
func NewAppConfig ¶
func NewAppConfig() *AppConfig
func (*AppConfig) DockerBuildTarget ¶ added in v0.0.253
func (*AppConfig) Dockerfile ¶ added in v0.0.249
func (*AppConfig) GetEnvVariables ¶ added in v0.0.335
func (*AppConfig) GetInternalPort ¶ added in v0.0.138
func (*AppConfig) HasBuilder ¶ added in v0.0.93
func (*AppConfig) HasBuiltin ¶ added in v0.0.138
func (*AppConfig) HasDefinition ¶
func (*AppConfig) HasServices ¶ added in v0.0.156
HasServices - Does this config have a services section
func (*AppConfig) SetBuildSecrets ¶ added in v0.0.333
func (*AppConfig) SetDockerCommand ¶ added in v0.0.254
func (*AppConfig) SetDockerEntrypoint ¶ added in v0.0.254
func (*AppConfig) SetEnvVariable ¶ added in v0.0.178
func (*AppConfig) SetEnvVariables ¶ added in v0.0.191
func (*AppConfig) SetInternalPort ¶ added in v0.0.94
func (*AppConfig) SetKillSignal ¶ added in v0.0.269
func (*AppConfig) SetProcess ¶ added in v0.0.243
func (*AppConfig) SetReleaseCommand ¶ added in v0.0.254
func (*AppConfig) SetStatics ¶ added in v0.0.241
func (*AppConfig) SetVolumes ¶ added in v0.0.254
func (*AppConfig) WriteToFile ¶
type Config ¶
type ConfigFormat ¶
type ConfigFormat string
const ( TOMLFormat ConfigFormat = ".toml" UnsupportedFormat = "" )
func ConfigFormatFromPath ¶
func ConfigFormatFromPath(p string) ConfigFormat
Click to show internal directories.
Click to hide internal directories.