ociutils

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashData added in v0.8.0

func HashData(data []byte) string

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

Directories

Path Synopsis
ignore
Package ignore provides tools for writing ignore files (a la .gitignore).
Package ignore provides tools for writing ignore files (a la .gitignore).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL