Documentation
¶
Index ¶
- func HashData(data []byte) string
- func PrintArtifact(pr common.Printer, art cpi.ArtifactAccess, listFiles bool)
- func PrintIndex(pr common.Printer, i cpi.IndexAccess, listFiles bool)
- func PrintLayer(pr common.Printer, blob blobaccess.BlobAccess, listFiles bool)
- func PrintManifest(pr common.Printer, m cpi.ManifestAccess, listFiles bool)
- func RegisterInfoHandler(mime string, h InfoHandler)
- type ArtifactInfo
- type BlobInfo
- type InfoHandler
- type LayerInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintArtifact ¶
func PrintArtifact(pr common.Printer, art cpi.ArtifactAccess, listFiles bool)
func PrintIndex ¶
func PrintIndex(pr common.Printer, i cpi.IndexAccess, listFiles bool)
func PrintLayer ¶
func PrintLayer(pr common.Printer, blob blobaccess.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 ArtifactInfo ¶
type ArtifactInfo 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 GetArtifactInfo ¶
func GetArtifactInfo(art cpi.ArtifactAccess, layerFiles bool) *ArtifactInfo
func GetIndexInfo ¶
func GetIndexInfo(i cpi.IndexAccess, layerFiles bool) *ArtifactInfo
func GetManifestInfo ¶
func GetManifestInfo(m cpi.ManifestAccess, layerFiles bool) *ArtifactInfo
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 blobaccess.BlobAccess, layerFiles bool) *LayerInfo
Click to show internal directories.
Click to hide internal directories.