Documentation ¶
Index ¶
- Constants
- func FilePathToImageName(fileName string) (imageName string, err error)
- func GetAuth(image string) string
- func GetAuthString(image, username, password string) (string, error)
- func GetClientRepoDigests(imageID string) ([]string, error)
- func GetClientRepoDigestsByRegistry(imageID string, registry string) ([]string, error)
- func GetImageTag(image string) string
- func GetNewImageName(image string, registry string) string
- func GetRepoDigest(image string) string
- func ImageToFilePath(imageName string, dir string) (fileName string, err error)
- func IsClientErrNotFound(err error) bool
- func Load(image *Image) error
- func Push(image string, creds *util.Creds) error
- func ReTag(image *Image) error
- func Save(c *hashcache.CheckSumCache, image string, dir string, creds *util.Creds) error
- func StripImageTag(image string) string
- func StripRepoDigest(image string) string
- func ValidatePublishedRepoDigestMatchesHashcache(image Image) (bool, error)
- type Image
- type PushEvent
- type SaveEvent
Constants ¶
View Source
const ( ShaIdent string = "@sha256:" Ext string = ".docker.tar" )
Variables ¶
This section is empty.
Functions ¶
func FilePathToImageName ¶
FileNameToImageName converts an archived file name back to the origonal docker image name
func GetAuthString ¶ added in v0.3.8
GetAuthString will return a valid auth string from credentials
func GetClientRepoDigests ¶ added in v1.0.2
func GetClientRepoDigestsByRegistry ¶ added in v1.0.2
func GetImageTag ¶ added in v1.0.1
func GetNewImageName ¶ added in v0.3.3
func GetRepoDigest ¶ added in v1.0.1
func ImageToFilePath ¶
ImageToFileName provides an archived name from a docker image name
func IsClientErrNotFound ¶ added in v1.0.2
func StripImageTag ¶ added in v1.0.1
func StripRepoDigest ¶ added in v1.0.1
func ValidatePublishedRepoDigestMatchesHashcache ¶ added in v1.0.2
Check if the docker recorded RepoDigest matches Image struct RepoDigest
Types ¶
type Image ¶
type Image struct { FileName string ImageID string ImageName string ImageTag string NewImageName string RepoDigest string }
Click to show internal directories.
Click to hide internal directories.