optrun

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	Apply(*Options)
}

func Defaults

func Defaults() Option

Defaults sets all options back to their defaults. This can be useful when using CopyToTempDir or Convert but not wanting to inherit any options from the previous PulumiTest.

func WithCache

func WithCache(path ...string) Option

WithCache enables caching of the stack state to the given path. If the path already exists, the cached stack state will be used instead of executing the run. If the path does not exist, the stack state will be written to the cache path after executing the run.

func WithOpts

func WithOpts(opts ...opttest.Option) Option

WithOpts adds additional test options for the context of the run.

type Options

type Options struct {
	OptTest     []opttest.Option
	CachePath   string
	EnableCache bool
}

func DefaultOptions

func DefaultOptions() *Options

func (*Options) Copy

func (o *Options) Copy() *Options

Copy creates a deep copy of the current options.

Jump to

Keyboard shortcuts

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