package mountref

import "github.com/dotcloud/docker/daemon/internal/mountref"

Index

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

Source Files

counter.go

Version
v28.1.1+incompatible (latest)
Published
Apr 18, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
5 hours ago

Tools for package owners.