libartifact

package
v5.4.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	// Manifest is the OCI manifest for the artifact with the name.
	// In a valid artifact the Manifest is guaranteed to not be nil.
	Manifest *manifest.OCI1
	Name     string
}

func (*Artifact) GetDigest

func (a *Artifact) GetDigest() (*digest.Digest, error)

func (*Artifact) GetName

func (a *Artifact) GetName() (string, error)

GetName returns the "name" or "image reference" of the artifact

func (*Artifact) SetName

func (a *Artifact) SetName(name string)

SetName is a accessor for setting the artifact name Note: long term this may not be needed, and we would be comfortable with simply using the exported field called Name

func (*Artifact) TotalSizeBytes

func (a *Artifact) TotalSizeBytes() int64

TotalSizeBytes returns the total bytes of the all the artifact layers

type ArtifactList

type ArtifactList []*Artifact

func (ArtifactList) GetByNameOrDigest

func (al ArtifactList) GetByNameOrDigest(nameOrDigest string) (*Artifact, bool, error)

GetByNameOrDigest returns an artifact, if present, by a given name Returns an error if not found

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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