azure

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureConfig

type AzureConfig struct {
	SubscriptionID string `json:"subscription_id" yaml:"subscription_id"`
	TenantID       string `json:"tenant_id" yaml:"tenant_id"`
	ClientID       string `json:"client_id" yaml:"client_id"`
	ClientSecret   string `json:"client_secret" yaml:"client_secret"` //nolint:gosec // G117: Azure config field
	ResourceGroup  string `json:"resource_group" yaml:"resource_group"`
	Region         string `json:"region" yaml:"region"`
}

AzureConfig holds configuration for the Azure cloud provider.

type AzureProvider

type AzureProvider struct {
	// contains filtered or unexported fields
}

AzureProvider implements CloudProvider for Microsoft Azure.

func NewAzureProvider

func NewAzureProvider(config AzureConfig) *AzureProvider

NewAzureProvider creates a new AzureProvider with the given configuration.

func (*AzureProvider) Dependencies

func (p *AzureProvider) Dependencies() []plugin.PluginDependency

func (*AzureProvider) Deploy

func (*AzureProvider) Description

func (p *AzureProvider) Description() string

func (*AzureProvider) GetDeploymentStatus

func (p *AzureProvider) GetDeploymentStatus(ctx context.Context, deployID string) (*provider.DeployStatus, error)

func (*AzureProvider) GetMetrics

func (p *AzureProvider) GetMetrics(ctx context.Context, deployID string, window time.Duration) (*provider.Metrics, error)

func (*AzureProvider) ListImages

func (p *AzureProvider) ListImages(ctx context.Context, repo string) ([]provider.ImageTag, error)

ListImages lists container images in an Azure Container Registry repository.

func (*AzureProvider) Name

func (p *AzureProvider) Name() string

func (*AzureProvider) OnDisable

func (p *AzureProvider) OnDisable(_ plugin.PluginContext) error

func (*AzureProvider) OnEnable

func (p *AzureProvider) OnEnable(_ plugin.PluginContext) error

func (*AzureProvider) PullImage

func (p *AzureProvider) PullImage(ctx context.Context, image string, auth provider.RegistryAuth) error

PullImage pulls a container image from Azure Container Registry.

func (*AzureProvider) PushImage

func (p *AzureProvider) PushImage(ctx context.Context, image string, auth provider.RegistryAuth) error

PushImage pushes a container image to Azure Container Registry.

func (*AzureProvider) RegisterRoutes

func (p *AzureProvider) RegisterRoutes(mux *http.ServeMux)

func (*AzureProvider) Rollback

func (p *AzureProvider) Rollback(ctx context.Context, deployID string) error

func (*AzureProvider) TestConnection

func (p *AzureProvider) TestConnection(ctx context.Context, config map[string]any) (*provider.ConnectionResult, error)

func (*AzureProvider) UIPages

func (p *AzureProvider) UIPages() []plugin.UIPageDef

func (*AzureProvider) Version

func (p *AzureProvider) Version() string

Jump to

Keyboard shortcuts

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