Documentation
¶
Index ¶
- func IsInteractive() bool
- func Run(parentCtx context.Context, runOpts RunOptions) error
- func RunConfigProfile(parentCtx context.Context, containers []config.ContainerConfig, ...) error
- func RunLogin(parentCtx context.Context, version string, platformClient api.PlatformAPI, ...) error
- func RunLogout(parentCtx context.Context, rt runtime.Runtime, platformClient api.PlatformAPI, ...) error
- func RunLogs(parentCtx context.Context, rt runtime.Runtime, ...) error
- func RunMessage(parentCtx context.Context, event output.MessageEvent) error
- func RunReset(parentCtx context.Context, rt runtime.Runtime, ...) error
- func RunRestart(parentCtx context.Context, rt runtime.Runtime, stopOpts container.StopOptions, ...) error
- func RunSetupAzure(parentCtx context.Context, containers []config.ContainerConfig, ...) error
- func RunSnapshotList(parentCtx context.Context, lister snapshot.CloudPodLister, ...) error
- func RunSnapshotLoad(parentCtx context.Context, rt runtime.Runtime, ...) error
- func RunSnapshotRemove(parentCtx context.Context, rt runtime.Runtime, ...) error
- func RunSnapshotSave(parentCtx context.Context, rt runtime.Runtime, ...) error
- func RunSnapshotShow(parentCtx context.Context, inspector snapshot.CloudPodInspector, ...) error
- func RunStartInterception(parentCtx context.Context, ...) error
- func RunStatus(parentCtx context.Context, rt runtime.Runtime, ...) error
- func RunStop(parentCtx context.Context, rt runtime.Runtime, ...) error
- func RunStopInterception(parentCtx context.Context, targetCloud string) error
- func RunUpdate(parentCtx context.Context, checkOnly bool, githubToken string) error
- func RunVolumeClear(parentCtx context.Context, containers []config.ContainerConfig) error
- type App
- type AppOption
- type RunOptions
- type SnapshotClient
- type SnapshotLoadClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInteractive ¶
func IsInteractive() bool
func RunConfigProfile ¶ added in v0.5.6
func RunConfigProfile(parentCtx context.Context, containers []config.ContainerConfig, localStackHost string) error
RunConfigProfile runs the AWS profile setup flow with TUI output. It resolves the host from the AWS container config and runs the setup.
func RunMessage ¶ added in v0.8.0
func RunMessage(parentCtx context.Context, event output.MessageEvent) error
func RunRestart ¶ added in v0.5.8
func RunRestart(parentCtx context.Context, rt runtime.Runtime, stopOpts container.StopOptions, startOpts container.StartOptions) error
func RunSetupAzure ¶ added in v0.11.0
func RunSetupAzure(parentCtx context.Context, containers []config.ContainerConfig, localStackHost, lstkConfigDir string) error
RunSetupAzure runs the Azure CLI setup flow with TUI output. The setup itself (endpoint resolution, custom cloud registration, dummy login) lives in azureconfig.RunSetup so non-interactive mode can reuse it.
func RunSnapshotList ¶ added in v0.12.0
func RunSnapshotLoad ¶ added in v0.10.0
func RunSnapshotLoad(parentCtx context.Context, rt runtime.Runtime, containers []config.ContainerConfig, client SnapshotLoadClient, host string, src snapshot.Destination, authToken, strategy string, starter snapshot.Starter) error
func RunSnapshotRemove ¶ added in v0.12.0
func RunSnapshotSave ¶ added in v0.8.0
func RunSnapshotSave(parentCtx context.Context, rt runtime.Runtime, containers []config.ContainerConfig, client SnapshotClient, host string, dest snapshot.Destination, authToken string) error
func RunSnapshotShow ¶ added in v0.13.0
func RunStartInterception ¶ added in v0.14.0
func RunStartInterception(parentCtx context.Context, preflight func(context.Context, output.Sink) (string, error)) error
RunStartInterception redirects the user's global Azure CLI to LocalStack with TUI output. preflight (the command-boundary checks that resolve the endpoint URL) runs under the TUI sink so its errors render in the TUI too. The domain logic lives in azureconfig so non-interactive mode can reuse it.
func RunStop ¶ added in v0.3.0
func RunStop(parentCtx context.Context, rt runtime.Runtime, containers []config.ContainerConfig, opts container.StopOptions) error
func RunStopInterception ¶ added in v0.14.0
RunStopInterception switches the global Azure CLI cloud back to targetCloud with TUI output.
func RunVolumeClear ¶ added in v0.5.8
func RunVolumeClear(parentCtx context.Context, containers []config.ContainerConfig) error
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (App) DeferredOutput ¶ added in v0.12.0
type RunOptions ¶ added in v0.5.7
type RunOptions struct {
Runtime runtime.Runtime
Version string
StartOptions container.StartOptions
NotifyOptions update.NotifyOptions
ConfigPath string
EmulatorLabel string
NeedsEmulatorSelection bool
// PostStart, when set, runs after the emulator is freshly started (e.g. to
// auto-load a configured snapshot). It is skipped when the emulator was
// already running.
PostStart func(ctx context.Context, sink output.Sink) error
}
RunOptions groups the parameters for Run. Bundling them keeps the call site readable as the UI entry point grows new concerns.
type SnapshotClient ¶ added in v0.9.0
type SnapshotClient interface {
snapshot.StateExporter
snapshot.PodSaver
}
SnapshotClient is satisfied by any type that can both export local state and save a remote pod snapshot — aws.Client implements both today.
type SnapshotLoadClient ¶ added in v0.10.0
type SnapshotLoadClient interface {
snapshot.LocalLoadClient
snapshot.PodLoader
}
SnapshotLoadClient is satisfied by aws.Client.