config

package
v0.0.0-...-72a07b5 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// GCP Project ID to operate on
	ProjectID string `mapstructure:"project-id"`
	// A set of RetentionPolicy to apply to the snapshots
	RetentionPolicies rp.RetentionPolicies `mapstructure:"retention-policies"`
	// Include automatically generated snapshot in the calculations and pruning
	Automatic bool `mapstructure:"automatic"`
	// Include manually generated snapshots in the calculations and pruning
	Manual bool `mapstructure:"manual"`
	// Do not perform any real operations
	DryRun bool `mapstructure:"dry-run"`
}

Config is used to provide the configuration to GCSC application

func Load

func Load(cmd *cobra.Command) (*Config, error)

Load returns a Config item with the values gathered from the configurations file, or the CLI or the ENV VARS

Jump to

Keyboard shortcuts

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