Documentation ¶
Index ¶
Constants ¶
View Source
const (
ImageName = "localstack/localstack:0.11.2"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalStack ¶
type LocalStack struct {
Name string
}
LocalStack represents a localstack container running on the local system.
func New ¶
func New(name string) (*LocalStack, *session.Session, error)
New creates a LocalStack and session configured to talk to it. noinspection GoUnusedExportedFunction
func (*LocalStack) Start ¶
func (ls *LocalStack) Start() (*session.Session, error)
Start creates and runs a localstack container on a random port. It waits for the container to start and returns an AWS session.Session configured to talk to the container. The existing container is used if it is already running.
func (*LocalStack) Stop ¶
func (ls *LocalStack) Stop() error
Stop kills the localstack container. It is a noop if the container is not running.
Click to show internal directories.
Click to hide internal directories.