Documentation ¶
Index ¶
- type AzureClient
- func (ac *AzureClient) CheckIPAddressAvailability(ctx context.Context, resourceGroupName, vnetName, ip string) (network.IPAddressAvailabilityResult, error)
- func (ac *AzureClient) CreateOrUpdate(ctx context.Context, resourceGroupName, vnetName string, ...) error
- func (ac *AzureClient) Delete(ctx context.Context, resourceGroupName, vnetName string) error
- func (ac *AzureClient) Get(ctx context.Context, resourceGroupName, vnetName string) (network.VirtualNetwork, error)
- type Client
- type Service
- type VNetScope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureClient ¶
type AzureClient struct {
// contains filtered or unexported fields
}
AzureClient contains the Azure go-sdk Client.
func NewClient ¶
func NewClient(auth azure.Authorizer) *AzureClient
NewClient creates a new VM client from subscription ID.
func (*AzureClient) CheckIPAddressAvailability ¶
func (ac *AzureClient) CheckIPAddressAvailability(ctx context.Context, resourceGroupName, vnetName, ip string) (network.IPAddressAvailabilityResult, error)
CheckIPAddressAvailability checks whether a private IP address is available for use.
func (*AzureClient) CreateOrUpdate ¶
func (ac *AzureClient) CreateOrUpdate(ctx context.Context, resourceGroupName, vnetName string, vn network.VirtualNetwork) error
CreateOrUpdate creates or updates a virtual network in the specified resource group.
func (*AzureClient) Delete ¶
func (ac *AzureClient) Delete(ctx context.Context, resourceGroupName, vnetName string) error
Delete deletes the specified virtual network.
func (*AzureClient) Get ¶
func (ac *AzureClient) Get(ctx context.Context, resourceGroupName, vnetName string) (network.VirtualNetwork, error)
Get gets the specified virtual network by resource group.
type Client ¶
type Client interface { Get(context.Context, string, string) (network.VirtualNetwork, error) CreateOrUpdate(context.Context, string, string, network.VirtualNetwork) error Delete(context.Context, string, string) error CheckIPAddressAvailability(context.Context, string, string, string) (network.IPAddressAvailabilityResult, error) }
Client wraps go-sdk.
Directories ¶
Path | Synopsis |
---|---|
Package mock_virtualnetworks is a generated GoMock package.
|
Package mock_virtualnetworks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.