Documentation
¶
Index ¶
- func IsInteractive() bool
- func Run(parentCtx context.Context, runOpts RunOptions) 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 RunSetupAWS(parentCtx context.Context, containers []config.ContainerConfig, ...) error
- func RunSetupAzure(parentCtx context.Context, containers []config.ContainerConfig, ...) error
- func RunSnapshotList(parentCtx context.Context, lister snapshot.CloudPodLister, ...) error
- func RunSnapshotListRemoteS3(parentCtx context.Context, rt runtime.Runtime, ...) error
- func RunSnapshotLoad(parentCtx context.Context, rt runtime.Runtime, ...) error
- func RunSnapshotLoadRemoteS3(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 RunSnapshotSaveRemoteS3(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 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 RunSetupAWS ¶ added in v0.16.0
func RunSetupAWS(parentCtx context.Context, containers []config.ContainerConfig, localStackHost string, force bool) error
RunSetupAWS runs the AWS profile setup flow with TUI output. It resolves the host from the AWS container config and runs the setup. When force is true, the confirmation prompt is skipped.
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 RunSnapshotListRemoteS3 ¶ added in v0.15.0
func RunSnapshotListRemoteS3(parentCtx context.Context, rt runtime.Runtime, containers []config.ContainerConfig, client snapshot.RemoteClient, host, s3URL string, creds snapshot.S3Credentials, authToken string) error
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 RunSnapshotLoadRemoteS3 ¶ added in v0.15.0
func RunSnapshotLoadRemoteS3(parentCtx context.Context, rt runtime.Runtime, containers []config.ContainerConfig, client snapshot.RemoteClient, host, podName, s3URL string, creds snapshot.S3Credentials, 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 RunSnapshotSaveRemoteS3 ¶ added in v0.15.0
func RunSnapshotSaveRemoteS3(parentCtx context.Context, rt runtime.Runtime, containers []config.ContainerConfig, client snapshot.RemoteClient, host, podName, s3URL string, creds snapshot.S3Credentials, 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.
Source Files
¶
- app.go
- logrender.go
- run.go
- run_awsconfig.go
- run_azureconfig.go
- run_login.go
- run_logout.go
- run_logs.go
- run_reset.go
- run_restart.go
- run_snapshot_list.go
- run_snapshot_load.go
- run_snapshot_remote.go
- run_snapshot_remove.go
- run_snapshot_save.go
- run_snapshot_show.go
- run_status.go
- run_stop.go
- run_update.go
- run_volume_clear.go