optproviderupgrade

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaselineVersion string = "{baselineVersion}"

BaselineVersion is replaced with the version of the provider used for the baseline.

View Source
var ProgramName string = "{programName}"

ProgramName is replaced with the name of the program under test based on the program's directory name.

Functions

This section is empty.

Types

type PreviewProviderUpgradeOpt

type PreviewProviderUpgradeOpt interface {
	Apply(*PreviewProviderUpgradeOptions)
}

func BaselineOpts

func BaselineOpts(opts ...opttest.Option) PreviewProviderUpgradeOpt

BaselineOptions sets the options to use when creating the baseline stack.

func CacheDir

func CacheDir(elem ...string) PreviewProviderUpgradeOpt

CacheDir sets the path to the directory to use for caching the stack state and grpc log. The path can contain the following placeholders:

- {programName}: the name of the program under test based on the program's directory name

- {baselineVersion}: the version of the provider used for the baseline

Calculated path elements are joined with filepath.Join.

func DisableAttach

func DisableAttach() PreviewProviderUpgradeOpt

DisableAttach will configure the provider binary in the program's Pulumi.yaml rather than attaching the running provider.

type PreviewProviderUpgradeOptions

type PreviewProviderUpgradeOptions struct {
	CacheDirTemplate []string
	DisableAttach    bool
	BaselineOpts     []opttest.Option
}

Jump to

Keyboard shortcuts

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