configlib

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCustomizationSet

func IsCustomizationSet(key string, elems []interface{}, elem string) bool

IsCustomizationSet ...

func SetCustomizations

func SetCustomizations(rSettings rcmd.RSettings, cfg Config, pkg string) rcmd.RSettings

SetCustomizations ... set ENV values in Rsettings

Types

type Config

type Config struct {
	TestCmd        string                   `mapstructure:"testcmd" yaml:"test_cmd"`
	Packages       []string                 `mapstructure:"packages"`
	LibPaths       []string                 `mapstructure:"libpaths"`
	Customizations map[string]Customization `mapstructure:"packages"`
	Threads        int                      `mapstructure:"threads"`
	RPath          string                   `mapstructure:"rpath"`
	LogLevel       string                   `mapstructure:"loglevel"`
	AsUser         bool                     `mapstructure:"asuser" yaml:"as_user"`
	EnvVars        []string                 `mapstructure:"environment_variables" yaml:"environment_variables"`
	NoCleanup      bool                     `mapstructure:"nocleanup" yaml:"no_cleanup"`
}

Config provides a struct for all pkgr related configuration

func NewConfig

func NewConfig(cfgPath string) Config

NewConfig initialize a Config passed in by caller

type Customization

type Customization struct {
	EnvVars []string `mapstructure:"environment_variables"`
}

PkgConfig provides information about custom settings during package installation

Jump to

Keyboard shortcuts

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