Documentation
¶
Index ¶
- Constants
- func AnyRunning(ctx context.Context, rt runtime.Runtime, containers []config.ContainerConfig) (bool, error)
- func Logs(ctx context.Context, rt runtime.Runtime, sink output.Sink, ...) error
- func ResolveEmulatorLabel(ctx context.Context, client api.PlatformAPI, ...) (string, bool)
- 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 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 AnyRunning ¶ added in v0.5.0
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).
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
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.