oci

package
v0.0.0-...-ad2992c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPuller

func NewPuller(opts ...pullerOpt) (*puller, error)

func OptSetBlobCachePath

func OptSetBlobCachePath(path string) pullerOpt

func OptSetSystemContext

func OptSetSystemContext(s *types.SystemContext) pullerOpt

func OptSetTmpDirPath

func OptSetTmpDirPath(path string) pullerOpt

Types

type Cache

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

func NewCache

func NewCache(opts ...CacheOpt) (*Cache, error)

func (*Cache) Pull

func (c *Cache) Pull(ctx context.Context, uri string, sysCtx *types.SystemContext) (string, error)

type CacheOpt

type CacheOpt func(*Cache) error

func OptSetCachePath

func OptSetCachePath(path string) CacheOpt

Jump to

Keyboard shortcuts

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