load

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneGitRepo

func CloneGitRepo(cg ConfGit) error

CloneGitRepo clone a git repo containing the tests and vars

func ImportFileandVars

func ImportFileandVars(ctf ConfTestfiles, cv ConfVariables) (testsFiles []string, varsFiles []string, err error)

importFileandVars Charge la config d'un fichier vigieConf dans une instance Vigie La fonction retourne tous les fichiers (test,vars) éligibles contenus dans les répertoires Tests et Vars

Types

type ConfGit

type ConfGit struct {
	Clone bool `toml:"clone"`
	// Final Branch to checkout
	Branch string `toml:"branch"`
	// URL Repo Git
	Repo string `toml:"repo"`
	// Destination Path to clone
	Path string `toml:"path"`
	// Allow x509: certificate signed by unknown authority
	Insecure bool `toml:"insecure"`
}

type ConfTestfiles

type ConfTestfiles struct {
	Included []string `toml:"included"`
	Excluded []string `toml:"excluded"`
}

type ConfVariables

type ConfVariables struct {
	Variables []string `toml:"variables"`
	Included  []string `toml:"included"`
	Excluded  []string `toml:"excluded"`
	Fromenv   bool     `toml:"fromenv"`
}

Jump to

Keyboard shortcuts

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