Documentation ¶
Index ¶
- func FetchData(apiNo int, yml *load.Config, samplesToMerge *load.SamplesToMerge) []interface{}
- func FetchLookups(cfg *load.Config, apiNo int, samplesToMerge *load.SamplesToMerge) bool
- func GitCheckout(w *git.Worktree) error
- func GitClone(dir string, u *url.URL) error
- func GitPull(dir string) error
- func LoadFile(configs *[]load.Config, f os.FileInfo, dirPath string) error
- func LoadFiles(configs *[]load.Config, files []os.FileInfo, filePath string) []error
- func LoadV4IntegrationConfig(v4Str string, configs *[]load.Config, fileName string, filePath string) error
- func ReadYML(yml string) (load.Config, error)
- func Run(yml load.Config)
- func RunAsync(yml load.Config, samplesToMerge *load.SamplesToMerge, originalAPINo int)
- func RunFiles(configs *[]load.Config) []error
- func RunSync(yml load.Config, samplesToMerge *load.SamplesToMerge, originalAPINo int)
- func SubEnvVariables(strConf *string)
- func SubLookupFileData(configs *[]load.Config, config load.Config) error
- func SubTimestamps(strConf *string, currentTime time.Time)
- func SyncGitConfigs(customDir string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchData ¶
func FetchData(apiNo int, yml *load.Config, samplesToMerge *load.SamplesToMerge) []interface{}
FetchData fetches data from various inputs Also handles paginated responses for HTTP requests (tested against NR APIs)
func FetchLookups ¶
FetchLookups x
func LoadV4IntegrationConfig ¶ added in v1.2.0
func LoadV4IntegrationConfig(v4Str string, configs *[]load.Config, fileName string, filePath string) error
LoadV4IntegrationConfig Loads Agent/Flex config files
func RunAsync ¶ added in v0.9.7
func RunAsync(yml load.Config, samplesToMerge *load.SamplesToMerge, originalAPINo int)
RunAsync API in Async mode after lookup
func RunSync ¶ added in v0.9.7
func RunSync(yml load.Config, samplesToMerge *load.SamplesToMerge, originalAPINo int)
RunSync API in Sync mode after lookup
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 ¶
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.