bicep

package
v0.0.0-...-87586f8 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEnsureEnvPreReqBicepCompileFailed = errors.New("")

Functions

func NewBicepProvider

func NewBicepProvider(
	azCli azcli.AzCli,
	bicepCli *bicep.Cli,
	resourceService *azapi.ResourceService,
	deploymentManager *infra.DeploymentManager,
	envManager environment.Manager,
	env *environment.Environment,
	console input.Console,
	prompters prompt.Prompter,
	curPrincipal provisioning.CurrentPrincipalIdProvider,
	keyvaultService keyvault.KeyVaultService,
	cloud *cloud.Cloud,
) provisioning.Provider

NewBicepProvider creates a new instance of a Bicep Infra provider

Types

type BicepProvider

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

BicepProvider exposes infrastructure provisioning using Azure Bicep templates

func (*BicepProvider) Deploy

Provisioning the infrastructure within the specified template

func (*BicepProvider) Destroy

Destroys the specified deployment by deleting all azure resources, resource groups & deployments that are referenced.

func (*BicepProvider) EnsureEnv

func (p *BicepProvider) EnsureEnv(ctx context.Context) error

EnsureEnv ensures that the environment is in a provision-ready state with required values set, prompting the user if values are unset. This also requires that the Bicep module can be compiled.

func (*BicepProvider) Initialize

func (p *BicepProvider) Initialize(ctx context.Context, projectPath string, options provisioning.Options) error

Initialize initializes provider state from the options. It also calls EnsureEnv, which ensures the client-side state is ready for provisioning.

func (*BicepProvider) LastDeployment

func (p *BicepProvider) LastDeployment(ctx context.Context) (*azapi.ResourceDeployment, error)

func (*BicepProvider) Name

func (p *BicepProvider) Name() string

Name gets the name of the infra provider

func (*BicepProvider) Preview

Preview runs deploy using the what-if argument

func (*BicepProvider) RequiredExternalTools

func (p *BicepProvider) RequiredExternalTools() []tools.ExternalTool

func (*BicepProvider) State

Jump to

Keyboard shortcuts

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