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 ¶
- func NewTestProvider(envManager environment.Manager, env *environment.Environment, ...) provisioning.Provider
- type TestProvider
- func (p *TestProvider) Deploy(ctx context.Context) (*provisioning.DeployResult, error)
- func (p *TestProvider) Destroy(ctx context.Context, options provisioning.DestroyOptions) (*provisioning.DestroyResult, error)
- func (t *TestProvider) EnsureEnv(ctx context.Context) error
- func (p *TestProvider) GetDeployment(ctx context.Context) (*provisioning.DeployResult, error)
- func (p *TestProvider) Initialize(ctx context.Context, projectPath string, options provisioning.Options) error
- func (p *TestProvider) Name() string
- func (p *TestProvider) Preview(ctx context.Context) (*provisioning.DeployPreviewResult, error)
- func (p *TestProvider) RequiredExternalTools() []tools.ExternalTool
- func (p *TestProvider) State(ctx context.Context, options *provisioning.StateOptions) (*provisioning.StateResult, error)
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 ¶
func (p *TestProvider) Deploy(ctx context.Context) (*provisioning.DeployResult, error)
Provisioning the infrastructure within the specified template
func (*TestProvider) Destroy ¶
func (p *TestProvider) Destroy( ctx context.Context, options provisioning.DestroyOptions, ) (*provisioning.DestroyResult, error)
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 ¶
func (p *TestProvider) Preview(ctx context.Context) (*provisioning.DeployPreviewResult, error)
Provisioning the infrastructure within the specified template
func (*TestProvider) RequiredExternalTools ¶
func (p *TestProvider) RequiredExternalTools() []tools.ExternalTool
func (*TestProvider) State ¶
func (p *TestProvider) State(ctx context.Context, options *provisioning.StateOptions) (*provisioning.StateResult, error)
Click to show internal directories.
Click to hide internal directories.