Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct {
Path string
LayerDigest string
DeletedByLayerDigest string
Type ArtifactType
Linkname string
Content []byte
Size int64
ContentClass ContentClass
Scannable bool
}
type ArtifactType ¶
type ArtifactType string
const ( ArtifactTypeRegularFile ArtifactType = "regular" ArtifactTypeHardlink ArtifactType = "hardlink" ArtifactTypeSymlink ArtifactType = "symlink" )
type BlobOpener ¶
type BlobOpener interface {
OpenLayer(ctx context.Context, descriptor manifest.Descriptor) (io.ReadCloser, error)
}
type ContentClass ¶
type ContentClass string
const ( ContentClassText ContentClass = "text" ContentClassOversize ContentClass = "oversize" ContentClassBinaryELF ContentClass = "binary_elf" ContentClassBinaryNUL ContentClass = "binary_nul" ContentClassBinaryLowPrintable ContentClass = "binary_low_printable" )
type OpenFunc ¶
type OpenFunc func(ctx context.Context, descriptor manifest.Descriptor) (io.ReadCloser, error)
func (OpenFunc) OpenLayer ¶
func (f OpenFunc) OpenLayer(ctx context.Context, descriptor manifest.Descriptor) (io.ReadCloser, error)
type ReplayOptions ¶
type ReplayResult ¶
func Replay ¶
func Replay(ctx context.Context, descriptors []manifest.Descriptor, options ReplayOptions, opener BlobOpener) (ReplayResult, error)
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) DeletedArtifacts ¶
func (*State) FinalFiles ¶
func (*State) Result ¶
func (s *State) Result() ReplayResult
Click to show internal directories.
Click to hide internal directories.