mountref

package
v28.0.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker func(path string) bool

Checker checks whether the provided path is mounted.

type Counter

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

Counter is a generic counter for use by graphdriver Get/Put calls

func NewCounter

func NewCounter(c Checker) *Counter

NewCounter returns a new Counter. It accepts a Checker to determine whether a path is mounted.

func (*Counter) Decrement

func (c *Counter) Decrement(path string) int

Decrement decreases the ref count for the given id and returns the current count

func (*Counter) Increment

func (c *Counter) Increment(path string) int

Increment increases the ref count for the given id and returns the current count

Jump to

Keyboard shortcuts

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