mapper

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chart

func Chart() map[string]Fn

func FromManifest

func FromManifest(manifest ocispec.Manifest, root string) (target.Target, error)

FromManifest will return the appropriate content store given a reference and source type adequate for storing the results on disk

func Images

func Images() map[string]Fn

func NewMapperFileStore

func NewMapperFileStore(root string, mapper map[string]Fn) *store

NewMapperFileStore creates a new file store that uses mapper functions for each detected descriptor.

This extends content.File, and differs in that it allows much more functionality into how each descriptor is written.

Types

type Fn

type Fn func(desc ocispec.Descriptor) (string, error)

Jump to

Keyboard shortcuts

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