config

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileName string

FileName is the filename for the voucher configuration

Functions

func EnabledChecks

func EnabledChecks(checks map[string]bool) (enabledChecks []string)

EnabledChecks returns a slice of strings with the check names, based on a map[string]bool (with a check name in the key, and the value storing whether or not to run the check). The returned map contains enabled checks.

func InitConfig

func InitConfig()

InitConfig searches for and loads configuration file for voucher

func NewCheckSuite

func NewCheckSuite(metadataClient voucher.MetadataClient, names ...string) (*voucher.Suite, error)

NewCheckSuite creates a new checks.Suite with the requested Checks, passing any necessary configuration details to the checks.

func NewMetadataClient

func NewMetadataClient(ctx context.Context) voucher.MetadataClient

NewMetadataClient creates a new MetadataClient.

Types

This section is empty.

Jump to

Keyboard shortcuts

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