Documentation
¶
Index ¶
- Constants
- Variables
- func Api(rack sdk.Interface, c *stdcli.Context) error
- func Apps(rack sdk.Interface, c *stdcli.Context) error
- func AppsCancel(rack sdk.Interface, c *stdcli.Context) error
- func AppsCreate(rack sdk.Interface, c *stdcli.Context) error
- func AppsDelete(rack sdk.Interface, c *stdcli.Context) error
- func AppsExport(rack sdk.Interface, c *stdcli.Context) error
- func AppsImport(rack sdk.Interface, c *stdcli.Context) error
- func AppsInfo(rack sdk.Interface, c *stdcli.Context) error
- func AppsLock(rack sdk.Interface, c *stdcli.Context) error
- func AppsParams(rack sdk.Interface, c *stdcli.Context) error
- func AppsParamsSet(rack sdk.Interface, c *stdcli.Context) error
- func AppsUnlock(rack sdk.Interface, c *stdcli.Context) error
- func AppsWait(rack sdk.Interface, c *stdcli.Context) error
- func Build(rack sdk.Interface, c *stdcli.Context) error
- func Builds(rack sdk.Interface, c *stdcli.Context) error
- func BuildsExport(rack sdk.Interface, c *stdcli.Context) error
- func BuildsImport(rack sdk.Interface, c *stdcli.Context) error
- func BuildsInfo(rack sdk.Interface, c *stdcli.Context) error
- func BuildsLogs(rack sdk.Interface, c *stdcli.Context) error
- func Certs(rack sdk.Interface, c *stdcli.Context) error
- func CertsDelete(rack sdk.Interface, c *stdcli.Context) error
- func CertsGenerate(rack sdk.Interface, c *stdcli.Context) error
- func CertsImport(rack sdk.Interface, c *stdcli.Context) error
- func Cp(rack sdk.Interface, c *stdcli.Context) error
- func Decrypt(_ sdk.Interface, c *stdcli.Context) error
- func Deploy(rack sdk.Interface, c *stdcli.Context) error
- func Encrypt(_ sdk.Interface, c *stdcli.Context) error
- func Env(rack sdk.Interface, c *stdcli.Context) error
- func EnvEdit(rack sdk.Interface, c *stdcli.Context) error
- func EnvGet(rack sdk.Interface, c *stdcli.Context) error
- func EnvSet(rack sdk.Interface, c *stdcli.Context) error
- func EnvUnset(rack sdk.Interface, c *stdcli.Context) error
- func Exec(rack sdk.Interface, c *stdcli.Context) error
- func Instances(rack sdk.Interface, c *stdcli.Context) error
- func InstancesKeyroll(rack sdk.Interface, c *stdcli.Context) error
- func InstancesSsh(rack sdk.Interface, c *stdcli.Context) error
- func InstancesTerminate(rack sdk.Interface, c *stdcli.Context) error
- func Login(rack sdk.Interface, c *stdcli.Context) error
- func Logs(rack sdk.Interface, c *stdcli.Context) error
- func Proxy(rack sdk.Interface, c *stdcli.Context) error
- func Ps(rack sdk.Interface, c *stdcli.Context) error
- func PsInfo(rack sdk.Interface, c *stdcli.Context) error
- func PsStop(rack sdk.Interface, c *stdcli.Context) error
- func Rack(rack sdk.Interface, c *stdcli.Context) error
- func RackAccess(rack sdk.Interface, c *stdcli.Context) error
- func RackAccessKeyRotate(rack sdk.Interface, c *stdcli.Context) error
- func RackInstall(rack sdk.Interface, c *stdcli.Context) error
- func RackLogs(rack sdk.Interface, c *stdcli.Context) error
- func RackParams(rack sdk.Interface, c *stdcli.Context) error
- func RackParamsSet(rack sdk.Interface, c *stdcli.Context) error
- func RackPs(rack sdk.Interface, c *stdcli.Context) error
- func RackReleases(rack sdk.Interface, c *stdcli.Context) error
- func RackResources(rack sdk.Interface, c *stdcli.Context) error
- func RackResourcesCreate(rack sdk.Interface, c *stdcli.Context) error
- func RackResourcesDelete(rack sdk.Interface, c *stdcli.Context) error
- func RackResourcesInfo(rack sdk.Interface, c *stdcli.Context) error
- func RackResourcesLink(rack sdk.Interface, c *stdcli.Context) error
- func RackResourcesOptions(rack sdk.Interface, c *stdcli.Context) error
- func RackResourcesProxy(rack sdk.Interface, c *stdcli.Context) error
- func RackResourcesTypes(rack sdk.Interface, c *stdcli.Context) error
- func RackResourcesUnlink(rack sdk.Interface, c *stdcli.Context) error
- func RackResourcesUpdate(rack sdk.Interface, c *stdcli.Context) error
- func RackResourcesUrl(rack sdk.Interface, c *stdcli.Context) error
- func RackRuntimeAttach(rack sdk.Interface, c *stdcli.Context) error
- func RackRuntimes(rack sdk.Interface, c *stdcli.Context) error
- func RackScale(rack sdk.Interface, c *stdcli.Context) error
- func RackSync(rack sdk.Interface, c *stdcli.Context) error
- func RackSyncWhiteListInstancesIp(rack sdk.Interface, c *stdcli.Context) error
- func RackUninstall(rack sdk.Interface, c *stdcli.Context) error
- func RackUpdate(rack sdk.Interface, c *stdcli.Context) error
- func RackWait(rack sdk.Interface, c *stdcli.Context) error
- func Racks(rack sdk.Interface, c *stdcli.Context) error
- func Registries(rack sdk.Interface, c *stdcli.Context) error
- func RegistriesAdd(rack sdk.Interface, c *stdcli.Context) error
- func RegistriesRemove(rack sdk.Interface, c *stdcli.Context) error
- func Releases(rack sdk.Interface, c *stdcli.Context) error
- func ReleasesInfo(rack sdk.Interface, c *stdcli.Context) error
- func ReleasesManifest(rack sdk.Interface, c *stdcli.Context) error
- func ReleasesPromote(rack sdk.Interface, c *stdcli.Context) error
- func ReleasesRollback(rack sdk.Interface, c *stdcli.Context) error
- func Resources(rack sdk.Interface, c *stdcli.Context) error
- func ResourcesDeleteDB(rack sdk.Interface, c *stdcli.Context) error
- func ResourcesFixCf(rack sdk.Interface, c *stdcli.Context) error
- func ResourcesInfo(rack sdk.Interface, c *stdcli.Context) error
- func ResourcesProxy(rack sdk.Interface, c *stdcli.Context) error
- func ResourcesUrl(rack sdk.Interface, c *stdcli.Context) error
- func Restart(rack sdk.Interface, c *stdcli.Context) error
- func Run(rack sdk.Interface, c *stdcli.Context) error
- func Scale(rack sdk.Interface, c *stdcli.Context) error
- func Services(rack sdk.Interface, c *stdcli.Context) error
- func ServicesRestart(rack sdk.Interface, c *stdcli.Context) error
- func Ssl(rack sdk.Interface, c *stdcli.Context) error
- func SslUpdate(rack sdk.Interface, c *stdcli.Context) error
- func Start(rack sdk.Interface, c *stdcli.Context) error
- func Switch(rack sdk.Interface, c *stdcli.Context) error
- func Test(rack sdk.Interface, c *stdcli.Context) error
- func Update(rack sdk.Interface, c *stdcli.Context) error
- func Version(rack sdk.Interface, c *stdcli.Context) error
- type AuthenticationError
- type Engine
- type HandlerFunc
Constants ¶
const (
// RESOURCE_URL_PATTERN is used to check if the resrouce URL starts with http:// or https://
RESOURCE_URL_PATTERN = `.+:\/{2}.+`
)
Variables ¶
var ( Starter = start.New() WaitDuration = 5 * time.Second )
var IsTerminalFn = func(c *stdcli.Context) bool {
return c.Writer().IsTerminal()
}
IsTerminalFn reports whether the context's writer is attached to a real terminal, used to gate masking of sensitive output in `convox rack params`. This is a VAR, not a function, so that tests can override it.
Not to be confused with stdcli.IsTerminal(*os.File) — that is the underlying syscall helper from the vendored stdcli package. IsTerminalFn wraps the stdcli call at the *stdcli.Context layer so test code can swap the behavior without producing a real PTY.
Not public API. Exported only because test files use `package cli_test` (black-box), which cannot reach unexported symbols. External consumers of pkg/cli must not take a dependency on this var — it may be renamed or removed without a deprecation cycle.
Callers: pkg/cli/rack.go (RackParams).
CONCURRENCY: this var is mutable package state. Tests that override it MUST restore via t.Cleanup AND MUST NOT call t.Parallel anywhere in pkg/cli that executes concurrently with an override — the race will surface under `go test -race`. At patch time no test in pkg/cli calls t.Parallel (verified).
Functions ¶
Types ¶
type AuthenticationError ¶
type AuthenticationError struct {
// contains filtered or unexported fields
}
func (AuthenticationError) AuthenticationError ¶
func (ae AuthenticationError) AuthenticationError() error
type Engine ¶
func (*Engine) Command ¶
func (e *Engine) Command(command, description string, fn HandlerFunc, opts stdcli.CommandOptions)
func (*Engine) CommandWithoutProvider ¶
func (e *Engine) CommandWithoutProvider(command, description string, fn HandlerFunc, opts stdcli.CommandOptions)
func (*Engine) RegisterCommands ¶
func (e *Engine) RegisterCommands()