Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BaselineVersion string = "{baselineVersion}"
BaselineVersion is replaced with the version of the provider used for the baseline.
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 }
func Defaults ¶
func Defaults() PreviewProviderUpgradeOptions