Documentation
¶
Index ¶
- Constants
- Variables
- func CopyFiles(sourceDir, destDir string) error
- func ErrStatusCode(statusCode int) int
- func Error(err error) error
- func GetBaseURL(port string) string
- func GetEmptyImageConfig() ([]byte, godigest.Digest)
- func GetFreePort() string
- func GetImageComponents(layerSize int) (imagespec.Image, [][]byte, imagespec.Manifest, error)
- func GetImageConfig() ([]byte, godigest.Digest)
- func GetOciLayoutDigests(imagePath string) (godigest.Digest, godigest.Digest, godigest.Digest)
- func GetRandomImageConfig() ([]byte, godigest.Digest)
- func GetSecureBaseURL(port string) string
- func GetTestBlobDigest(image, which string) godigest.Digest
- func InjectFailure(skip int) bool
- func Location(baseURL string, resp *resty.Response) string
- func MakeHtpasswdFile() string
- func MakeHtpasswdFileFromString(fileContent string) string
- func Ok(ok bool) bool
- func ReadLogFileAndSearchString(logPath string, stringToMatch string, timeout time.Duration) (bool, error)
- func UploadImage(img Image, baseURL, repo string) error
- func WaitTillServerReady(url string)
- func WaitTillTrivyDBDownloadStarted(rootDir string)
- type Image
Constants ¶
View Source
const ( BaseURL = "http://127.0.0.1:%s" BaseSecureURL = "https://127.0.0.1:%s" SleepTime = 100 * time.Millisecond )
Variables ¶
View Source
var ( ErrPostBlob = errors.New("can't post blob") ErrPutBlob = errors.New("can't put blob") )
Functions ¶
func ErrStatusCode ¶ added in v1.4.2
func GetBaseURL ¶
func GetEmptyImageConfig ¶ added in v1.4.3
func GetFreePort ¶
func GetFreePort() string
func GetImageComponents ¶ added in v1.4.2
func GetImageConfig ¶
func GetOciLayoutDigests ¶ added in v1.4.1
func GetRandomImageConfig ¶
func GetSecureBaseURL ¶
func GetTestBlobDigest ¶ added in v1.4.3
which: manifest, config, layer
func InjectFailure ¶
func MakeHtpasswdFile ¶
func MakeHtpasswdFile() string
func ReadLogFileAndSearchString ¶ added in v1.4.3
func UploadImage ¶ added in v1.4.2
func WaitTillServerReady ¶
func WaitTillServerReady(url string)
func WaitTillTrivyDBDownloadStarted ¶ added in v1.4.2
func WaitTillTrivyDBDownloadStarted(rootDir string)
Types ¶
Click to show internal directories.
Click to hide internal directories.