Documentation ¶
Index ¶
- Constants
- Variables
- func CheckForUpdate()
- func ConfigDir() string
- func ConfigFileExistsAtPath(p string) (bool, error)
- func InitConfig()
- func ResolveConfigFileFromPath(p string) (string, error)
- func SaveConfig() error
- type AppConfig
- type Build
- type BuildLogStream
- type Config
- type ConfigFormat
- type DeploymentMonitor
- func (dm *DeploymentMonitor) DisplayCompact(ctx context.Context, w io.Writer)
- func (dm *DeploymentMonitor) DisplayVerbose(ctx context.Context, w io.Writer)
- func (dm *DeploymentMonitor) Error() error
- func (dm *DeploymentMonitor) Failed() bool
- func (dm *DeploymentMonitor) Start(ctx context.Context) <-chan *DeploymentStatus
- func (dm *DeploymentMonitor) Success() bool
- type DeploymentStatus
Constants ¶
View Source
const ( ConfigAPIToken = "access_token" ConfigAPIBaseURL = "api_base_url" ConfigAppName = "app" ConfigVerboseOutput = "verbose" ConfigRegistryHost = "registry_host" ConfigUpdateCheckLatestVersion = "update_check.latest_version" ConfigUpdateCheckTimestamp = "update_check.timestamp" ConfigUpdateCheckOptOut = "update_check.out_out" )
View Source
const NSRoot = "flyctl"
Variables ¶
View Source
var BackgroundTaskWG = &sync.WaitGroup{}
View Source
var BuildDate = ""
View Source
var Commit = ""
View Source
var ErrNoDeployment = errors.New("No deployment available")
View Source
var Version = ""
Functions ¶
func CheckForUpdate ¶
func CheckForUpdate()
func ConfigFileExistsAtPath ¶
func InitConfig ¶
func InitConfig()
func SaveConfig ¶
func SaveConfig() error
Types ¶
type AppConfig ¶
func LoadAppConfig ¶
func NewAppConfig ¶
func NewAppConfig() *AppConfig
func (*AppConfig) HasBuilder ¶ added in v0.0.93
func (*AppConfig) HasDefinition ¶
func (*AppConfig) SetInternalPort ¶ added in v0.0.94
func (*AppConfig) WriteToFile ¶
type BuildLogStream ¶
type BuildLogStream struct {
// contains filtered or unexported fields
}
func NewBuildLogStream ¶
func NewBuildLogStream(buildID string, client *api.Client) *BuildLogStream
func (*BuildLogStream) Err ¶
func (b *BuildLogStream) Err() error
func (*BuildLogStream) Status ¶
func (b *BuildLogStream) Status() string
type Config ¶
type ConfigFormat ¶
type ConfigFormat string
const ( TOMLFormat ConfigFormat = ".toml" UnsupportedFormat = "" )
func ConfigFormatFromPath ¶
func ConfigFormatFromPath(p string) ConfigFormat
type DeploymentMonitor ¶
type DeploymentMonitor struct { AppID string // contains filtered or unexported fields }
func NewDeploymentMonitor ¶
func NewDeploymentMonitor(client *api.Client, appID string) *DeploymentMonitor
func (*DeploymentMonitor) DisplayCompact ¶
func (dm *DeploymentMonitor) DisplayCompact(ctx context.Context, w io.Writer)
func (*DeploymentMonitor) DisplayVerbose ¶
func (dm *DeploymentMonitor) DisplayVerbose(ctx context.Context, w io.Writer)
func (*DeploymentMonitor) Error ¶
func (dm *DeploymentMonitor) Error() error
func (*DeploymentMonitor) Failed ¶ added in v0.0.88
func (dm *DeploymentMonitor) Failed() bool
func (*DeploymentMonitor) Start ¶
func (dm *DeploymentMonitor) Start(ctx context.Context) <-chan *DeploymentStatus
func (*DeploymentMonitor) Success ¶ added in v0.0.86
func (dm *DeploymentMonitor) Success() bool
type DeploymentStatus ¶
type DeploymentStatus struct {
// contains filtered or unexported fields
}
func (*DeploymentStatus) AllocSummary ¶
func (ds *DeploymentStatus) AllocSummary() string
func (*DeploymentStatus) Close ¶
func (ds *DeploymentStatus) Close()
func (*DeploymentStatus) DeploymentSummary ¶
func (ds *DeploymentStatus) DeploymentSummary() string
func (*DeploymentStatus) FailingAllocs ¶
func (dm *DeploymentStatus) FailingAllocs() []api.AllocationStatus
func (*DeploymentStatus) Update ¶
func (ds *DeploymentStatus) Update(updatedDeployment *api.DeploymentStatus)
Click to show internal directories.
Click to hide internal directories.