applier

package
v0.0.0-...-c5f19f0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyLayers

func ApplyLayers(layers []types.BlobInfo) types.ArtifactDetail

ApplyLayers returns the merged layer nolint: gocyclo

Types

type Applier

type Applier struct {
	// contains filtered or unexported fields
}

func NewApplier

func NewApplier(c cache.Cache, opts ...Option) Applier

func (Applier) ApplyLayers

func (a Applier) ApplyLayers(imageID string, layerKeys []string) (types.ArtifactDetail, error)

type Config

type Config struct {
	ContainerConfig containerConfig `json:"container_config"`
	History         []History
}

type History

type History struct {
	Created   time.Time
	CreatedBy string `json:"created_by"`
}

type Option

type Option func(*Applier)

func WithCacheMergedLayer

func WithCacheMergedLayer(b bool) Option

Jump to

Keyboard shortcuts

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