Documentation
¶
Index ¶
- Constants
- func Logs(ctx context.Context, rt runtime.Runtime, sink output.Sink, ...) error
- func ResolveAndCacheLabel(ctx context.Context, opts StartOptions, labelCh chan<- string)
- func ResolveEmulatorLabel(ctx context.Context, client api.PlatformAPI, ...) (string, bool)
- func ResolveRunningContainerName(ctx context.Context, rt runtime.Runtime, c config.ContainerConfig) (string, error)
- func Restart(ctx context.Context, rt runtime.Runtime, sink output.Sink, ...) error
- func RunningEmulators(ctx context.Context, rt runtime.Runtime, containers []config.ContainerConfig) ([]config.ContainerConfig, error)
- func SelectEmulator(ctx context.Context, sink output.Sink, configPath string) ([]config.ContainerConfig, error)
- func Start(ctx context.Context, rt runtime.Runtime, sink output.Sink, opts StartOptions, ...) error
- func Status(ctx context.Context, rt runtime.Runtime, containers []config.ContainerConfig, ...) error
- func StillRunningMessage(running []config.ContainerConfig) string
- func Stop(ctx context.Context, rt runtime.Runtime, sink output.Sink, ...) error
- type StartOptions
- type StopOptions
Constants ¶
View Source
const NoLicenseLabel = "LocalStack (No license)"
Variables ¶
This section is empty.
Functions ¶
func ResolveAndCacheLabel ¶ added in v0.7.1
func ResolveAndCacheLabel(ctx context.Context, opts StartOptions, labelCh chan<- string)
func ResolveEmulatorLabel ¶ added in v0.5.7
func ResolveEmulatorLabel(ctx context.Context, client api.PlatformAPI, containers []config.ContainerConfig, token string, logger log.Logger) (string, bool)
ResolveEmulatorLabel tries to fetch the plan name from the license API to build a label like "LocalStack Ultimate". Falls back to NoLicenseLabel when the plan cannot be determined. The returned bool is true only when a real plan was resolved (i.e. the result is worth caching).
func ResolveRunningContainerName ¶ added in v0.7.1
func Restart ¶ added in v0.5.8
func Restart(ctx context.Context, rt runtime.Runtime, sink output.Sink, stopOpts StopOptions, startOpts StartOptions, interactive bool) error
func RunningEmulators ¶ added in v0.7.0
func RunningEmulators(ctx context.Context, rt runtime.Runtime, containers []config.ContainerConfig) ([]config.ContainerConfig, error)
func SelectEmulator ¶ added in v0.7.1
func StillRunningMessage ¶ added in v0.7.0
func StillRunningMessage(running []config.ContainerConfig) string
Types ¶
type StartOptions ¶ added in v0.4.0
type StartOptions struct {
PlatformClient api.PlatformAPI
AuthToken string
ForceFileKeyring bool
WebAppURL string
LocalStackHost string
Containers []config.ContainerConfig
Env map[string]map[string]string
Persist bool
Logger log.Logger
Telemetry *telemetry.Client
}
StartOptions groups the user-provided options for starting an emulator.
type StopOptions ¶ added in v0.5.2
StopOptions carries optional telemetry context for the stop command.
Click to show internal directories.
Click to hide internal directories.