azure

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, azureProvider *AzureProvider) error

func Delete

func Delete(ctx context.Context, azureProvider *AzureProvider) error

func GetInstanceIP

func GetInstanceIP(ctx context.Context, azureProvider *AzureProvider) (string, error)

func Start

func Start(ctx context.Context, azureProvider *AzureProvider) error

func Status

func Status(ctx context.Context, azureProvider *AzureProvider) (client.Status, error)

func Stop

func Stop(ctx context.Context, azureProvider *AzureProvider) error

func StopRemote added in v0.0.5

func StopRemote(ctx context.Context, azureProvider *AzureProvider) error

we fallback to use direct http request for this as we'll be on the remote machine.

func Token added in v0.0.5

func Token(ctx context.Context, azureProvider *AzureProvider) error

Types

type AzureProvider

type AzureProvider struct {
	Config           *options.Options
	Cred             *azidentity.DefaultAzureCredential
	Log              log.Logger
	WorkingDirectory string
}

func NewProvider

func NewProvider(logs log.Logger) (*AzureProvider, error)

Jump to

Keyboard shortcuts

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