azure

package
v0.122.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(clientID, clientSecret, subscriptionID, tenantID string) (*Client, error)

func (*Client) CreateBlobContainer

func (c *Client) CreateBlobContainer(ctx context.Context, storageAccountName, containerName string) (*azblob.CreateContainerResponse, error)

func (*Client) CreateResourceGroup

func (c *Client) CreateResourceGroup(ctx context.Context, name, location string) (*armresources.ResourceGroup, error)

func (*Client) CreateStorageAccount

func (c *Client) CreateStorageAccount(ctx context.Context, location, resourceGroup, storageAccountName string) (*armstorage.Account, error)

func (*Client) GetInstanceSizes added in v0.120.0

func (c *Client) GetInstanceSizes(ctx context.Context, location string) ([]string, error)

func (*Client) GetRegions added in v0.120.0

func (c *Client) GetRegions(ctx context.Context) ([]string, error)

func (*Client) GetStorageAccessKeys

func (c *Client) GetStorageAccessKeys(ctx context.Context, resourceGroup, storageAccountName string) (*Keys, error)

func (*Client) ListDomains added in v0.120.0

func (c *Client) ListDomains(ctx context.Context) ([]*armdns.Zone, error)

func (*Client) ListResourceGroups added in v0.120.0

func (c *Client) ListResourceGroups(ctx context.Context) ([]*armresources.ResourceGroup, error)

func (*Client) TestHostedZoneLiveness

func (c *Client) TestHostedZoneLiveness(ctx context.Context, domainName, resourceGroup string) (bool, error)

func (*Client) TestHostedZoneLivenessWildcard added in v0.120.0

func (c *Client) TestHostedZoneLivenessWildcard(ctx context.Context, domainName string) (bool, *string, error)

type Keys

type Keys struct {
	Key1 string
	Key2 string
}

Jump to

Keyboard shortcuts

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