Documentation
¶
Index ¶
- type AzureConfig
- type AzureProvider
- func (p *AzureProvider) Dependencies() []plugin.PluginDependency
- func (p *AzureProvider) Deploy(ctx context.Context, req provider.DeployRequest) (*provider.DeployResult, error)
- func (p *AzureProvider) Description() string
- func (p *AzureProvider) GetDeploymentStatus(ctx context.Context, deployID string) (*provider.DeployStatus, error)
- func (p *AzureProvider) GetMetrics(ctx context.Context, deployID string, window time.Duration) (*provider.Metrics, error)
- func (p *AzureProvider) ListImages(ctx context.Context, repo string) ([]provider.ImageTag, error)
- func (p *AzureProvider) Name() string
- func (p *AzureProvider) OnDisable(_ plugin.PluginContext) error
- func (p *AzureProvider) OnEnable(_ plugin.PluginContext) error
- func (p *AzureProvider) PullImage(ctx context.Context, image string, auth provider.RegistryAuth) error
- func (p *AzureProvider) PushImage(ctx context.Context, image string, auth provider.RegistryAuth) error
- func (p *AzureProvider) RegisterRoutes(mux *http.ServeMux)
- func (p *AzureProvider) Rollback(ctx context.Context, deployID string) error
- func (p *AzureProvider) TestConnection(ctx context.Context, config map[string]any) (*provider.ConnectionResult, error)
- func (p *AzureProvider) UIPages() []plugin.UIPageDef
- func (p *AzureProvider) Version() string
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 (p *AzureProvider) Deploy(ctx context.Context, req provider.DeployRequest) (*provider.DeployResult, error)
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 (*AzureProvider) ListImages ¶
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
Click to show internal directories.
Click to hide internal directories.