testhelpers

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomInt

func RandomInt() int

func RandomString

func RandomString() string

Types

type Client

type Client struct {
	Environment          environments.Environment
	ResourceGroupsClient *resourcegroups.ResourceGroupsClient
	StorageAccountClient *storageaccounts.StorageAccountsClient
	SubscriptionId       string
	// contains filtered or unexported fields
}

func Build

func Build(ctx context.Context, t *testing.T) (*Client, error)

func (Client) BuildTestResources

func (c Client) BuildTestResources(ctx context.Context, resourceGroup, name string, kind storageaccounts.Kind) (*TestResources, error)

func (Client) BuildTestResourcesWithHns

func (c Client) BuildTestResourcesWithHns(ctx context.Context, resourceGroup, name string, kind storageaccounts.Kind) (*TestResources, error)

func (Client) BuildTestResourcesWithSku

func (c Client) BuildTestResourcesWithSku(ctx context.Context, resourceGroup, name string, kind storageaccounts.Kind, sku storageaccounts.SkuName) (*TestResources, error)

func (Client) Configure

func (c Client) Configure(client *client.Client, authorizer auth.Authorizer)

func (Client) DestroyTestResources

func (c Client) DestroyTestResources(ctx context.Context, resourceGroup, name string) error

func (Client) PrepareWithResourceManagerAuth

func (c Client) PrepareWithResourceManagerAuth(input *storage.Client)

func (Client) PrepareWithSharedKeyAuth

func (c Client) PrepareWithSharedKeyAuth(input *storage.Client, data *TestResources, keyType auth.SharedKeyType) error

type TestResources

type TestResources struct {
	ResourceGroup      string
	StorageAccountName string
	StorageAccountKey  string
}

Jump to

Keyboard shortcuts

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