Documentation
¶
Index ¶
- func BuildTransport(registry Registry) http.RoundTripper
- func CheckSameFile(f1name, f2name string) (bool, error)
- func CheckSameSymlink(f1name, f2name string) (bool, error)
- func CheckTar(image string) bool
- func CleanFilePath(dirtyPath string) string
- func CleanupImage(image Image)
- func ConfigureTLS(skipTsVerifyRegistries []string, registriesToCertificates map[string]string)
- func DirIsEmpty(path string) (bool, error)
- func GetFileContents(path string) (*string, error)
- func GetFileSystemForImage(image v1.Image, root string, whitelist []string) error
- func GetFileSystemForLayer(layer v1.Layer, root string, whitelist []string) error
- func GetImageLayers(pathToImage string) []string
- func GetSize(path string) int64
- func HasFilepathPrefix(path, prefix string) bool
- func HasTag(image string) bool
- func IsTar(path string) bool
- func RemoveTag(image string) string
- func SortMap(m map[string]string) string
- type Directory
- type DirectoryEntry
- type Image
- type ImageHistoryItem
- type Layer
- type OriginalPerm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTransport ¶
func BuildTransport(registry Registry) http.RoundTripper
func CheckSameFile ¶
func CheckSameSymlink ¶
func CleanFilePath ¶
CleanFilePath removes characters from a given path that cannot be used in paths by the underlying platform (e.g. Windows)
func CleanupImage ¶
func CleanupImage(image Image)
func ConfigureTLS ¶
func DirIsEmpty ¶
given a path to a directory, check if it has any contents
func GetFileContents ¶
GetFileContents returns the contents of a file at the specified path
func GetFileSystemForImage ¶
unpack image filesystem to local disk if provided directory is not empty, do nothing
func GetFileSystemForLayer ¶
GetFileSystemForLayer unpacks a layer to local disk
func GetImageLayers ¶
func HasFilepathPrefix ¶
HasFilepathPrefix checks if the given file path begins with prefix
Types ¶
type DirectoryEntry ¶
func CreateDirectoryEntries ¶
func CreateDirectoryEntries(root string, entryNames []string) (entries []DirectoryEntry)
func GetDirectoryEntries ¶
func GetDirectoryEntries(d Directory) []DirectoryEntry
type Image ¶
func GetImage ¶
GetImage infers the source of an image and retrieves a v1.Image reference to it. Once a reference is obtained, it attempts to unpack the v1.Image's reader's contents into a temp directory on the local filesystem.
func GetImageForName ¶
GetImageForName retrieves an image by name alone. It does not return layer information, or respect caching.
type ImageHistoryItem ¶
type ImageHistoryItem struct {
CreatedBy string `json:"created_by"`
}
type OriginalPerm ¶
type OriginalPerm struct {
// contains filtered or unexported fields
}