Documentation
¶
Index ¶
Constants ¶
View Source
const RunScriptHelperTemplate = `` /* 1038-byte string literal not displayed */
RunScriptHelperTemplate entry point to bootstrap tests
Variables ¶
This section is empty.
Functions ¶
func RenderRunScriptHelperTemplate ¶
func RenderRunScriptHelperTemplate(tvParams *TestVerifierParams) (string, error)
RenderRunScriptHelperTemplate render the helper script
Types ¶
type Asset ¶
type Asset struct { Description string DownloadURL string Sha256Sum string FileName string FileMode string InstallCMD string InstallPath string InstallVerify string InstallSudo bool }
Asset describes an asset
type TargetPlatform ¶
type TargetPlatform struct { OS string // linux or windows Distribution string // Ubuntu Centos Arch string // x86_64 or x86_32 Release string // i.e. 14.04 }
TargetPlatform instance info
type TestVerifier ¶
type TestVerifier interface { Name() string ValidateConfig(*TestVerifierParams) error CheckAssets(*TestVerifierParams) []Asset GenerateRunScript(*TestVerifierParams, string) (string, error) }
TestVerifier is the interface to implement a verifier
type TestVerifierParams ¶
type TestVerifierParams struct { Verbose bool NoColor bool Assets []Asset Platform TargetPlatform TmpDir string CSpec interface{} RunScriptHelper string RemoteTestPath string RemoteAssetPath string }
TestVerifierParams to pass to all function
Click to show internal directories.
Click to hide internal directories.