azureconfig

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AzureSubdomain = "azure"
	CloudName      = "LocalStack"
)

Variables

This section is empty.

Functions

func BuildCloudConfig

func BuildCloudConfig(endpointURL string) (string, error)

BuildCloudConfig returns the JSON payload for `az cloud register/update --cloud-config`.

func BuildEndpoint

func BuildEndpoint(host string) string

func ConfigDir

func ConfigDir(lstkConfigDir string) string

func Env

func Env(azureConfigDir string) []string

func IsHealthy

func IsHealthy(ctx context.Context, endpointURL string) error

func IsSetUp

func IsSetUp(azureConfigDir string) bool

func RunSetup

func RunSetup(ctx context.Context, sink output.Sink, containers []config.ContainerConfig, localStackHost, lstkConfigDir string) error

RunSetup derives the LocalStack Azure endpoint from the configured containers and runs Setup against the isolated Azure CLI config dir under lstkConfigDir. It works with any sink, so it serves both the interactive (TUI) and non-interactive (plain) paths.

func Setup

func Setup(ctx context.Context, sink output.Sink, endpointURL, azureConfigDir string) error

Setup registers the LocalStack custom cloud in an isolated AZURE_CONFIG_DIR, activates it, disables instance discovery, and logs in with a dummy SP.

Types

This section is empty.

Jump to

Keyboard shortcuts

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