config

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	S3 ResourceType
}

Config - the config object we pass around that is a parsed version of RawConfig

func GetConfig

func GetConfig(filePath string) (*Config, error)

GetConfig - unmarshall the raw config file and parse it into a config object.

type FilterRule

type FilterRule struct {
	NamesRE []*regexp.Regexp
}

FilterRule - contains regular expressions or plain text patterns used to match against a resource type's properties

type RawConfig

type RawConfig struct {
	S3 rawResourceType `yaml:"s3"`
}

RawConfig - used to unmarshall the raw config file

type ResourceType

type ResourceType struct {
	IncludeRule FilterRule
	ExcludeRule FilterRule
}

ResourceType - the include and exclude rules for a resource type

Jump to

Keyboard shortcuts

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