azure

package
v5.0.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 6 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)
}

func GetAPI

func GetAPI(f *client.Factory, credentials *providerv1alpha1.CredentialSecret) API

Jump to

Keyboard shortcuts

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