Documentation ¶
Index ¶
- func PrintArtefact(pr common.Printer, art cpi.ArtefactAccess, listFiles bool)
- func PrintIndex(pr common.Printer, i cpi.IndexAccess, listFiles bool)
- func PrintLayer(pr common.Printer, blob accessio.BlobAccess, listFiles bool)
- func PrintManifest(pr common.Printer, m cpi.ManifestAccess, listFiles bool)
- func RegisterInfoHandler(mime string, h InfoHandler)
- type ArtefactInfo
- type BlobInfo
- type InfoHandler
- type LayerInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintArtefact ¶
func PrintArtefact(pr common.Printer, art cpi.ArtefactAccess, listFiles bool)
func PrintIndex ¶
func PrintIndex(pr common.Printer, i cpi.IndexAccess, listFiles bool)
func PrintLayer ¶
func PrintLayer(pr common.Printer, blob accessio.BlobAccess, listFiles bool)
func PrintManifest ¶
func PrintManifest(pr common.Printer, m cpi.ManifestAccess, listFiles bool)
func RegisterInfoHandler ¶
func RegisterInfoHandler(mime string, h InfoHandler)
Types ¶
type ArtefactInfo ¶
type ArtefactInfo struct { Digest digest.Digest `json:"digest"` Type string `json:"type"` Descriptor interface{} `json:"descriptor"` Config *BlobInfo `json:"config,omitempty"` Layers []*BlobInfo `json:"layers,omitempty"` Manifests []*BlobInfo `json:"manifests,omitempty"` }
func GetArtefactInfo ¶
func GetArtefactInfo(art cpi.ArtefactAccess, layerFiles bool) *ArtefactInfo
func GetIndexInfo ¶
func GetIndexInfo(i cpi.IndexAccess, layerFiles bool) *ArtefactInfo
func GetManifestInfo ¶
func GetManifestInfo(m cpi.ManifestAccess, layerFiles bool) *ArtefactInfo
type BlobInfo ¶
type BlobInfo struct { Error string `json:"error,omitempty"` Unparsed string `json:"unparsed,omitempty"` Content json.RawMessage `json:"content,omitempty"` Type string `json:"type,omitempty"` Digest digest.Digest `json:"digest,omitempty"` Size int64 `json:"size,omitempty"` Info interface{} `json:"info,omitempty"` }
type InfoHandler ¶
type InfoHandler interface { Description(pr common.Printer, m cpi.ManifestAccess, config []byte) Info(m cpi.ManifestAccess, config []byte) interface{} }
type LayerInfo ¶
type LayerInfo struct { Description string `json:"description,omitempty"` Error string `json:"error,omitempty"` Unparsed string `json:"unparsed,omitempty"` Content interface{} `json:"content,omitempty"` }
func GetLayerInfo ¶
func GetLayerInfo(blob accessio.BlobAccess, layerFiles bool) *LayerInfo
Click to show internal directories.
Click to hide internal directories.