overlay

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

A basic overlay storage backend.

Things still TODO:

  1. implement GC (nobody really uses this, it seems people just clean and rebuild, so...)

Index

Constants

This section is empty.

Variables

View Source
var ThreadPoolCancelled = errors.Errorf("thread pool cancelled")

Functions

func Check added in v0.15.0

func Check(config types.StackerConfig) error

func ConvertAndOutput

func ConvertAndOutput(config types.StackerConfig, tag, name string, layerType types.LayerType) error

func NewOverlay

func NewOverlay(config types.StackerConfig) (types.Storage, error)

func UnprivSetup

func UnprivSetup(config types.StackerConfig, uid, gid int) error

Types

type ThreadPool

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

func NewThreadPool

func NewThreadPool(n int) *ThreadPool

func (*ThreadPool) Add

func (tp *ThreadPool) Add(f func(context.Context) error)

func (*ThreadPool) DoneAddingJobs

func (tp *ThreadPool) DoneAddingJobs()

func (*ThreadPool) Run

func (tp *ThreadPool) Run() error

Jump to

Keyboard shortcuts

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