localstack

package module
v0.0.0-...-49e4b5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const FixedPort = Port + "/tcp"
View Source
const LocalStackImage = "localstack/localstack:3.0"
View Source
const Port = "4566"

Variables

This section is empty.

Functions

This section is empty.

Types

type Stack

type Stack struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *Stack

New returns the current stack instance

func (*Stack) EndpointURL

func (s *Stack) EndpointURL() string

func (*Stack) Start

func (s *Stack) Start(forceRestart bool, opts ...StackOption) error

Start starts the stack instance with options, forces a restart if required

func (*Stack) Stop

func (s *Stack) Stop() error

Stop stops the stack instance

type StackOption

type StackOption func(s *Stack)

func WithContext

func WithContext(ctx context.Context) StackOption

func WithInitScriptMount

func WithInitScriptMount(initScriptDirPath string, completeLogLine string) (StackOption, error)

WithInitScriptMount configures the instance with init scripts and waits for a specific line from the script to show as ready to continue

func WithInitTimeout

func WithInitTimeout(timeout int) StackOption

func WithNotInitWait

func WithNotInitWait() StackOption

func WithReuseExisting

func WithReuseExisting() StackOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL