control

package
v1.0.0-pre01 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = log.New(os.Stderr, "", 0)

Logger is a STDERR logger

Functions

func Filter

func Filter(file string, filters map[string]string) error

Filter filters an individual file

func Get added in v0.3.0

func Get(location string, headers []string) (io.ReadCloser, error)

Get fetches the control from a location and returns a io.ReadCloser

Types

type Configuration

type Configuration struct {
	Filters map[string]map[string]string
	BaseDir string
}

Configuration is the overall data structure unmarshalled from JSON

func (*Configuration) DoFilters

func (c *Configuration) DoFilters() error

DoFilters filters the files listed in the Configuration object

func (*Configuration) Print

func (c *Configuration) Print()

Print displays the configuration object

func (*Configuration) Read

func (c *Configuration) Read(location string, headers []string, encoded bool) error

Read reads in the configuration and returns the object

type SSM added in v0.4.0

type SSM struct {
	Service ssmiface.SSMAPI
	// contains filtered or unexported fields
}

func NewSSM added in v0.4.0

func NewSSM(opts ...SSMOption) *SSM

New creates an SSM from a list of SSMOption functions

func (*SSM) GetParameter added in v0.4.0

func (s *SSM) GetParameter(path string) (string, error)

type SSMOption added in v0.4.0

type SSMOption func(*SSM)

SSMOption is a function to set ssm options

Jump to

Keyboard shortcuts

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