ociutils

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

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