Documentation ¶
Index ¶
- Constants
- func DockerVersion(ua []string) (string, error)
- func GenDiff(s storage.Storage, imageID string)
- func GenerateAncestry(s storage.Storage, imageID, parentID string) (err error)
- func GetImageDiffCache(s storage.Storage, imageID string) ([]byte, error)
- func GetImageFilesCache(s storage.Storage, imageID string) ([]byte, error)
- func GetImageFilesJson(s storage.Storage, imageID string) ([]byte, error)
- func SetImageDiffCache(s storage.Storage, imageID string, diffJson []byte) error
- func SetImageFilesCache(s storage.Storage, imageID string, filesJson []byte) error
- func StoreChecksum(s storage.Storage, imageID string, checksums []string) error
- func UpdateIndexImages(s storage.Storage, namespace, repo string, additionalBytes []byte, ...) error
- type TarError
- type TarFilesInfo
- type TarInfo
- type TarSum
Constants ¶
View Source
const TAR_FILES_INFO_SIZE = 8
Variables ¶
This section is empty.
Functions ¶
func DockerVersion ¶
func GenerateAncestry ¶
func GetImageFilesCache ¶
func GetImageFilesJson ¶
return json file listing for given image id Download the specified layer and determine the file contents. If the cache already exists, just return it.
func SetImageDiffCache ¶
func SetImageFilesCache ¶
func StoreChecksum ¶
Types ¶
type TarFilesInfo ¶
type TarFilesInfo struct {
// contains filtered or unexported fields
}
func NewTarFilesInfo ¶
func NewTarFilesInfo() *TarFilesInfo
func (*TarFilesInfo) Append ¶
func (t *TarFilesInfo) Append(h *tar.Header)
func (*TarFilesInfo) Json ¶
func (t *TarFilesInfo) Json() ([]byte, error)
This function returns json containing a slice of file info objects file info is a weird tuple (why it isn't just a map i have no idea) file info: [
filename, file type, is deleted, size, mod time, mode, uid, gid
]
type TarInfo ¶
type TarInfo struct { TarSum *TarSum TarFilesInfo *TarFilesInfo Error error }
func NewTarInfo ¶
func NewTarInfo() *TarInfo
func (*TarInfo) Load ¶
func (t *TarInfo) Load(file io.ReadSeeker)
Click to show internal directories.
Click to hide internal directories.