paths

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigFilePath

func GetConfigFilePath() string

GetConfigFilePath gets HCL config file path from CLI args or print usage and exit

func GetDeckerDir

func GetDeckerDir() string

GetDeckerDir finds the directory the "decker" binary is in.

func GetPluginDirectory

func GetPluginDirectory() string

GetPluginDirectory gets the default directory decker searches for plugins.

func GetPluginHCLFilePath

func GetPluginHCLFilePath(pluginName string) string

GetPluginHCLFilePath is given a plugin name and returns the path to its HCL config file (which defines its inputs and outputs).

func GetPluginPath

func GetPluginPath(pluginName string) string

GetPluginPath takes the name of a plugin, searches the plugin directories for a match, and returns the path to the plugin or empty string if the plugin isn't found

func GetReportFilePath

func GetReportFilePath(resourceName, extension string) string

GetReportFilePath is given a resource name and returns the path for its report file. The directory can be set using environment variable DECKER_REPORTS_DIR or will default to "/tmp/reports"

func GetReportsDir

func GetReportsDir() string

GetReportsDir returns a directory can be set using environment variable DECKER_REPORTS_DIR or will default to "/tmp/reports"

Types

This section is empty.

Jump to

Keyboard shortcuts

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