config

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() (string, error)

func ConfigFilePath

func ConfigFilePath() (string, error)

func Init

func Init() error

Types

type Config

type Config struct {
	Containers []ContainerConfig `mapstructure:"containers"`
}

func Get

func Get() (*Config, error)

type ContainerConfig

type ContainerConfig struct {
	Type EmulatorType `mapstructure:"type"`
	Tag  string       `mapstructure:"tag"`
	Port string       `mapstructure:"port"`
	Env  []string     `mapstructure:"env"`
}

func (*ContainerConfig) DisplayName added in v0.2.0

func (c *ContainerConfig) DisplayName() string

func (*ContainerConfig) HealthPath

func (c *ContainerConfig) HealthPath() (string, error)

func (*ContainerConfig) Image

func (c *ContainerConfig) Image() (string, error)

func (*ContainerConfig) Name

func (c *ContainerConfig) Name() string

Name returns the container name: "localstack-{type}" or "localstack-{type}-{tag}" if tag != latest

func (*ContainerConfig) ProductName

func (c *ContainerConfig) ProductName() (string, error)

type EmulatorType

type EmulatorType string
const (
	EmulatorAWS       EmulatorType = "aws"
	EmulatorSnowflake EmulatorType = "snowflake"
	EmulatorAzure     EmulatorType = "azure"
)

Jump to

Keyboard shortcuts

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