config

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.0.0

type Config struct {
	// Config is the underlying libnuke configuration.
	config.Config `yaml:",inline"`

	// These are tenants that are configured. There is a more generic Accounts in the config that is available that
	// should be used instead of this.
	// Deprecated: Use Accounts instead. Will be removed in 2.x
	Tenants map[string]*config.Account `yaml:"tenants"`

	// TenantBlocklist is a list of tenant IDs that should be blocklisted. This is used to prevent you from accidentally
	// nuking your production account.
	// Deprecated: Use Blocklist instead. Will be removed in 2.x
	TenantBlocklist []string `yaml:"tenant-blocklist"`
}

Config is an extended configuration implementation that adds some additional features on top of the libnuke config.

func New added in v1.0.0

func New(opts config.Options) (*Config, error)

New creates a new extended configuration from a file. This is necessary because we are extended the default libnuke configuration to contain additional attributes that are specific to the AWS Nuke tool.

Jump to

Keyboard shortcuts

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