azure

package
v5.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

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

Jump to

Keyboard shortcuts

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