Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmount

func Unmount(path string) error

Types

type BackingStore

type BackingStore struct {
	Logger   lager.Logger
	RootPath string
}

func (*BackingStore) Create

func (bm *BackingStore) Create(id string, quota int64) (string, error)

func (*BackingStore) Delete

func (bm *BackingStore) Delete(id string) error

type BackingStoreMgr

type BackingStoreMgr interface {
	Create(id string, quota int64) (string, error)
	Delete(id string) error
}

    go:generate counterfeiter . BackingStoreMgr

    type GraphDriver

    type GraphDriver interface {
    	graphdriver.Driver
    }

      go:generate counterfeiter . GraphDriver

      type Loop

      type Loop struct {
      	Retrier Retrier
      	Logger  lager.Logger
      }

      func (*Loop) MountFile

      func (lm *Loop) MountFile(filePath, destPath string) error

      func (*Loop) Unmount

      func (lm *Loop) Unmount(path string) error

      type LoopMounter

      type LoopMounter interface {
      	MountFile(filePath, destPath string) error
      	Unmount(path string) error
      }

        go:generate counterfeiter . LoopMounter

        type QuotaedDriver

        type QuotaedDriver struct {
        	GraphDriver
        	Unmount         UnmountFunc
        	BackingStoreMgr BackingStoreMgr
        	LoopMounter     LoopMounter
        	Retrier         Retrier
        	RootPath        string
        	Logger          lager.Logger
        }

        func (*QuotaedDriver) GetDiffLayerPath

        func (a *QuotaedDriver) GetDiffLayerPath(rootFSPath string) string

        func (*QuotaedDriver) GetMntPath

        func (a *QuotaedDriver) GetMntPath(id layercake.ID) string

        func (*QuotaedDriver) GetQuotaed

        func (a *QuotaedDriver) GetQuotaed(id, mountlabel string, quota int64) (string, error)

        func (*QuotaedDriver) Put

        func (a *QuotaedDriver) Put(id string) error

        type Retrier

        type Retrier interface {
        	Run(work func() error) error
        }

          go:generate counterfeiter . Retrier

          type UnmountFunc

          type UnmountFunc func(target string) error

          Directories

          Path Synopsis
          Code generated by counterfeiter.
          Code generated by counterfeiter.