Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Default ports used by Azurite BlobPort = "10000/tcp" QueuePort = "10001/tcp" TablePort = "10002/tcp" )
View Source
const ( // AccountName is the default testing account name used by Azurite AccountName string = "devstoreaccount1" // AccountKey is the default testing account key used by Azurite AccountKey string = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==" )
View Source
const (
EventHubPort = "5672/tcp"
)
Variables ¶
This section is empty.
Functions ¶
func WithEventHub ¶
func WithEventHub(req *testcontainers.GenericContainerRequest) error
func WithInMemoryPersistence ¶
func WithInMemoryPersistence(megabytes float64) testcontainers.CustomizeRequestOption
This option is only available for Azurite v3.28.0 and later.
Types ¶
type AzuriteContainer ¶
type AzuriteContainer struct { testcontainers.Container Settings options }
AzuriteContainer represents the Azurite container type used in the module
func RunAzurite ¶
func RunAzurite(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*AzuriteContainer, error)
Run creates an instance of the Azurite container type
func (*AzuriteContainer) MustServiceURL ¶
func (c *AzuriteContainer) MustServiceURL(ctx context.Context, srv Service) string
func (*AzuriteContainer) ServiceURL ¶
type EventHubContainer ¶
type EventHubContainer struct { testcontainers.Container Settings options }
EventHubContainer represents the Eventhub container type used in the module
func RunEventHub ¶
func RunEventHub(ctx context.Context, img string, blobAddress string, opts ...testcontainers.ContainerCustomizer) (*EventHubContainer, error)
Run creates an instance of the Eventhub container type
func (*EventHubContainer) MustServiceURL ¶
func (c *EventHubContainer) MustServiceURL(ctx context.Context) string
func (*EventHubContainer) ServiceURL ¶
func (c *EventHubContainer) ServiceURL(ctx context.Context) (string, error)
Click to show internal directories.
Click to hide internal directories.