testhelpers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 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 {
	ResourceGroupsClient resources.GroupsClient
	StorageClient        storage.AccountsClient

	Environment azure.Environment
	// contains filtered or unexported fields
}

func Build

func Build() (*Client, error)

func (Client) BuildTestResources

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

func (Client) DestroyTestResources

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

func (Client) PrepareWithAuthorizer

func (client Client) PrepareWithAuthorizer(input autorest.Client, authorizer autorest.Authorizer) autorest.Client

func (Client) PrepareWithStorageResourceManagerAuth

func (client Client) PrepareWithStorageResourceManagerAuth(input autorest.Client) autorest.Client

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