flyctl

package
v0.0.95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

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 ConfigDir

func ConfigDir() string

func ConfigFileExistsAtPath

func ConfigFileExistsAtPath(p string) (bool, error)

func InitConfig

func InitConfig()

func ResolveConfigFileFromPath

func ResolveConfigFileFromPath(p string) (string, error)

func SaveConfig

func SaveConfig() error

Types

type AppConfig

type AppConfig struct {
	AppName string
	Build   *Build

	Definition map[string]interface{}
}

func LoadAppConfig

func LoadAppConfig(configFile string) (*AppConfig, error)

func NewAppConfig

func NewAppConfig() *AppConfig

func (*AppConfig) HasBuilder added in v0.0.93

func (ac *AppConfig) HasBuilder() bool

func (*AppConfig) HasDefinition

func (ac *AppConfig) HasDefinition() bool

func (*AppConfig) SetInternalPort added in v0.0.94

func (ac *AppConfig) SetInternalPort(port int) bool

func (*AppConfig) WriteTo

func (ac *AppConfig) WriteTo(w io.Writer, format ConfigFormat) error

func (*AppConfig) WriteToFile

func (ac *AppConfig) WriteToFile(filename string) error

type Build

type Build struct {
	Builder    string
	Args       map[string]string
	Buildpacks []string
}

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) Fetch

func (b *BuildLogStream) Fetch(ctx context.Context) <-chan string

func (*BuildLogStream) Status

func (b *BuildLogStream) Status() string

type Config

type Config interface {
	GetString(key string) (string, error)
	GetBool(key string) bool
	GetStringSlice(key string) []string
}
var FlyConfig Config = ConfigNS(NSRoot)

func ConfigNS

func ConfigNS(ns string) 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL