Documentation
¶
Index ¶
- func CleanupDir()
- func CloseLogErr(c io.Closer)
- func EnterNewTempDir()
- func ExpectBundleErrorToHaveOccured(path, reStr string)
- func ExpectFileNotInBundle(pathInBundle string)
- func GenerateBundle()
- func GetFileFromBundle(pathInBundle string) string
- func GetResultFromBundle(path string) *types.Result
- func GetResultFromBundleErrors(path string) *types.Result
- func GetResultsFromBundle() []*types.Result
- func GetResultsFromBundleErrors() []*types.Result
- func LogResultsFomBundle()
- func MakeDockerContainer(name string, labels map[string]string) string
- func ReadFile(filename string) []byte
- func ReadFileFromBundle(archivePath, targetFile string) (string, error)
- func RemoveDockerContainer(ID string)
- func WriteBundleConfig(config string)
- func WriteFile(path string, contents string)
- type ErrFileNotFound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupDir ¶
func CleanupDir()
func CloseLogErr ¶
func EnterNewTempDir ¶
func EnterNewTempDir()
func ExpectBundleErrorToHaveOccured ¶ added in v0.2.0
func ExpectBundleErrorToHaveOccured(path, reStr string)
func ExpectFileNotInBundle ¶ added in v0.5.0
func ExpectFileNotInBundle(pathInBundle string)
func GenerateBundle ¶
func GenerateBundle()
func GetFileFromBundle ¶
func GetResultFromBundle ¶ added in v0.2.0
func GetResultFromBundleErrors ¶ added in v0.2.0
func GetResultsFromBundle ¶ added in v0.2.0
func GetResultsFromBundleErrors ¶ added in v0.2.0
func LogResultsFomBundle ¶ added in v0.2.0
func LogResultsFomBundle()
func MakeDockerContainer ¶
MakeDockerContainer makes a docker container to be used in tests, returning the container ID. name and labels are optional
func ReadFileFromBundle ¶
func RemoveDockerContainer ¶
func RemoveDockerContainer(ID string)
RemoveDockerContainer removes a docker container by ID as cleanup.
func WriteBundleConfig ¶
func WriteBundleConfig(config string)
Types ¶
type ErrFileNotFound ¶ added in v0.5.0
type ErrFileNotFound struct {
Filename string
}
func (ErrFileNotFound) Error ¶ added in v0.5.0
func (e ErrFileNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.