Documentation ¶
Index ¶
- func FetchData(apiNo int, yml *load.Config) []interface{}
- func FetchLookups(cfg *load.Config, i int) bool
- func GitCheckout(w *git.Worktree)
- func GitClone(dir string, u *url.URL) error
- func GitPull(dir string) error
- func LoadFile(configs *[]load.Config, f os.FileInfo, path string) error
- func LoadFiles(configs *[]load.Config, files []os.FileInfo, path string)
- func ReadYML(yml string) (load.Config, error)
- func Run(yml load.Config)
- func RunFiles(configs *[]load.Config)
- func RunVariableProcessor(i int, cfg *load.Config)
- func SubEnvVariables(strConf *string)
- func SubLookupFileData(configs *[]load.Config, config load.Config)
- func SubTimestamps(strConf *string)
- func SyncGitConfigs(customDir string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchData ¶
FetchData fetches data from various inputs Also handles paginated responses for HTTP requests (tested against NR APIs)
func RunVariableProcessor ¶
RunVariableProcessor substitute store variables into specific parts of config files
func SubEnvVariables ¶
func SubEnvVariables(strConf *string)
SubEnvVariables substitutes environment variables into config Use a double dollar sign eg. $$MY_ENV_VAR to subsitute that environment variable into the config file Can be useful with kubernetes service environment variables
func SubLookupFileData ¶
SubLookupFileData substitutes data from lookup files into config
func SubTimestamps ¶
func SubTimestamps(strConf *string)
SubTimestamps - return timestamp/date/datetime of current date/time with optional adjustment in various format
func SyncGitConfigs ¶
SyncGitConfigs Clone git repo if already exists, else pull latest version
Types ¶
This section is empty.