test

package
v0.0.0-...-9004588 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package test contains an test implementation of provider.Provider. This provider is registered for use when this package is imported, and can be imported for side effects only to register the provider, e.g.:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestProvider

func NewTestProvider(
	envManager environment.Manager,
	env *environment.Environment,
	console input.Console,
	prompters prompt.Prompter,
) provisioning.Provider

Types

type TestProvider

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

func (*TestProvider) Deploy

Provisioning the infrastructure within the specified template

func (*TestProvider) Destroy

func (*TestProvider) EnsureEnv

func (t *TestProvider) 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.

An environment is considered to be in a provision-ready state if it contains both an AZURE_SUBSCRIPTION_ID and AZURE_LOCATION value.

func (*TestProvider) GetDeployment

func (p *TestProvider) GetDeployment(ctx context.Context) (*provisioning.DeployResult, error)

func (*TestProvider) Initialize

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

func (*TestProvider) Name

func (p *TestProvider) Name() string

Name gets the name of the infra provider

func (*TestProvider) Preview

Provisioning the infrastructure within the specified template

func (*TestProvider) RequiredExternalTools

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

func (*TestProvider) State

Jump to

Keyboard shortcuts

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