optdestroy

package
v2.2.2-0...-17ad7ea Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package optdestroy contains functional options to be used with stack destroy operations github.com/sdk/v2/go/x/auto Stack.Destroy(...optdestroy.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.Destroy() operation

func Message

func Message(message string) Option

Message (optional) to associate with the destroy operation

func Parallel

func Parallel(n int) Option

Parallel is the number of resource operations to run in parallel at once during the destroy (1 for no parallelism). Defaults to unbounded. (default 2147483647)

func Target

func Target(urns []string) Option

Target specifies an exclusive list of resource URNs to destroy

func TargetDependents

func TargetDependents() Option

TargetDependents allows updating of dependent targets discovered but not specified in the Target list

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 destroy operation
	Message string
	// Specify an exclusive list of resource URNs to update
	Target []string
	// Allows updating of dependent targets discovered but not specified in the Target list
	TargetDependents bool
}

Options is an implementation detail

Jump to

Keyboard shortcuts

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