azurite

package module
v0.0.0-...-f27a51c Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultImage = "mcr.microsoft.com/azure-storage/azurite:3.23.0"

	BlobPort  = "10000"
	QueryPort = "10001"
	TablePort = "10002"
)

Variables

This section is empty.

Functions

func WithAccount

func WithAccount(name, key string) testcontainers.CustomizeRequestOption

WithAccount sets the account name and key for the Azurite container

func WithDefaultCredentials

func WithDefaultCredentials() testcontainers.CustomizeRequestOption

Types

type AzuriteContainer

type AzuriteContainer struct {
	testcontainers.Container
	AccountName string
	AccountKey  string
}

AzuriteContainer represents the Azurite container type used in the module

func RunContainer

func RunContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*AzuriteContainer, error)

RunContainer creates an instance of the Azurite container type

func (*AzuriteContainer) ConnectionString

func (c *AzuriteContainer) ConnectionString(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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