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 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 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 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 ¶
Functions ¶
func GetImageComponents ¶ added in v1.4.2
func GetOciLayoutDigests ¶ added in v1.4.1
Types ¶
Click to show internal directories.
Click to hide internal directories.