Documentation
¶
Index ¶
- func CleanupDir()
- func CloseLogErr(c io.Closer)
- func EnterNewTempDir()
- func ExpectBundleErrorToHaveOccurred(path, reStr string)
- func ExpectFileNotInBundle(pathInBundle string)
- func GenerateBundle(args ...string)
- 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 GetTempDir() string
- func LogResultsFromBundle()
- func MakeDockerContainer(client docker.CommonAPIClient, name string, labels map[string]string, ...) string
- func ReadFile(filename string) []byte
- func ReadFileFromBundle(archivePath, targetFile string) (string, error)
- func RemoveDockerContainer(client docker.CommonAPIClient, containerID string)
- func SetupLogger()
- 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 ExpectBundleErrorToHaveOccurred ¶
func ExpectBundleErrorToHaveOccurred(path, reStr string)
func ExpectFileNotInBundle ¶
func ExpectFileNotInBundle(pathInBundle string)
func GenerateBundle ¶
func GenerateBundle(args ...string)
func GetFileFromBundle ¶
func GetResultFromBundle ¶
func GetResultsFromBundle ¶
func GetTempDir ¶
func GetTempDir() string
func LogResultsFromBundle ¶
func LogResultsFromBundle()
func MakeDockerContainer ¶
func MakeDockerContainer(client docker.CommonAPIClient, name string, labels map[string]string, cmd []string) string
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(client docker.CommonAPIClient, containerID string)
RemoveDockerContainer removes a docker container by ID as cleanup.
func SetupLogger ¶ added in v0.24.0
func SetupLogger()
func WriteBundleConfig ¶
func WriteBundleConfig(config string)
Types ¶
type ErrFileNotFound ¶
type ErrFileNotFound struct {
Filename string
}
func (ErrFileNotFound) Error ¶
func (e ErrFileNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.