Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶
IsNotFound asserts generic Azure API not found error.
Types ¶
type API ¶
type API interface {
// GetVMSS gets VMSS metadata from Azure API.
GetVMSS(ctx context.Context, resourceGroupName, vmssName string) (VMSS, error)
// DeleteDeployment deletes the corresponding deployment via Azure API.
DeleteDeployment(ctx context.Context, resourceGroupName, deploymentName string) error
// DeleteVMSS deletes the corresponding VMSS via Azure API.
DeleteVMSS(ctx context.Context, resourceGroupName, vmssName string) error
// ListVMSSNodes lists VMs in given VMSS via Azure API.
ListVMSSNodes(ctx context.Context, resourceGroupName, vmssName string) (VMSSNodes, error)
// ListNetworkSecurityGroups lists all network security groups in given resource group via Azure API.
ListNetworkSecurityGroups(ctx context.Context, resourceGroupName string) (SecurityGroups, error)
// CreateOrUpdateNetworkSecurityGroup creates or updates existing network security group via Azure API.
CreateOrUpdateNetworkSecurityGroup(ctx context.Context, resourceGroupName, networkSecurityGroupName string, securityGroup network.SecurityGroup) error
}
func GetAPI ¶
func GetAPI(f *client.Factory, credentials *providerv1alpha1.CredentialSecret) API
type SecurityGroups ¶
type SecurityGroups []network.SecurityGroup
type VMSS ¶
type VMSS *compute.VirtualMachineScaleSet
type VMSSNodes ¶
type VMSSNodes []compute.VirtualMachineScaleSetVM
Click to show internal directories.
Click to hide internal directories.