azure

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deploy

func Deploy(azureConfig *parser.Config, envVars map[string]string)

Deploy initiates the deployment of resources in Azure

func DeployACI

func DeployACI(ctx context.Context, azureConfig *parser.Config, tunnelURL string, envVars map[string]string)

DeployACI handles the deployment of an Azure Container Instance

func DeployAppService

func DeployAppService(ctx context.Context, azureConfig *parser.Config, tunnelURL string, envVars map[string]string)

DeployAppService handles the deployment of an Azure App Service

func Destroy

func Destroy()

func ParseAndLogAzureError

func ParseAndLogAzureError(responseBody []byte)

ParseAndLogAzureError parses the JSON error response and logs the code and message

Types

type AzureError

type AzureError struct {
	Error struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	} `json:"error"`
}

AzureError represents the structure of an error response from Azure

type DetailedAzureError

type DetailedAzureError struct {
	Code    string `json:"Code"`
	Message string `json:"Message"`
}

DetailedAzureError represents a detailed error response structure from Azure

type ResourceTracker

type ResourceTracker struct {
	ResourceGroup      string
	AppServicePlan     string
	WebApp             string
	ContainterInstance string
}

ResourceTracker tracks the created resources for cleanup

Jump to

Keyboard shortcuts

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