Documentation
¶
Overview ¶
Package optrefresh contains functional options to be used with stack refresh operations github.com/sdk/v2/go/x/auto Stack.Refresh(...optrefresh.Option)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
ApplyOption(*Options)
}
Option is a parameter to be applied to a Stack.Refresh() operation
func DebugLogging ¶ added in v2.17.2
func DebugLogging(debugOpts debug.LoggingOptions) Option
func ExpectNoChanges ¶
func ExpectNoChanges() Option
ExpectNoChanges will cause the preview to return an error if any changes occur
func Parallel ¶
Parallel is the number of resource operations to run in parallel at once during the refresh (1 for no parallelism). Defaults to unbounded. (default 2147483647)
func ProgressStreams ¶ added in v2.10.1
ProgressStreams allows specifying one or more io.Writers to redirect incremental refresh output
type Options ¶
type Options struct { // Parallel is the number of resource operations to run in parallel at once // (1 for no parallelism). Defaults to unbounded. (default 2147483647) Parallel int // Message (optional) to associate with the refresh operation Message string // Return an error if any changes occur during this preview ExpectNoChanges bool // Specify an exclusive list of resource URNs to re Target []string // ProgressStreams allows specifying one or more io.Writers to redirect incremental refresh output ProgressStreams []io.Writer // DebugLogOpts specifies additional settings for debug logging DebugLogOpts debug.LoggingOptions }
Options is an implementation detail
Click to show internal directories.
Click to hide internal directories.