disk

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator interface {
	Create(size int) (Disk, error)
}

type Disk

type Disk interface {
	ID() int
	Path() string

	Delete() error
}

type FSCreator

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

func NewFSCreator

func NewFSCreator(
	dirPath string,
	fs boshsys.FileSystem,
	cmdRunner boshsys.CmdRunner,
	logger boshlog.Logger,
) FSCreator

func (FSCreator) Create

func (c FSCreator) Create(size int) (Disk, error)

type FSDisk

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

func NewFSDisk

func NewFSDisk(
	id int,
	path string,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) FSDisk

func (FSDisk) Delete

func (s FSDisk) Delete() error

func (FSDisk) ID

func (s FSDisk) ID() int

func (FSDisk) Path

func (s FSDisk) Path() string

type FSFinder

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

func NewFSFinder

func NewFSFinder(dirPath string, fs boshsys.FileSystem, logger boshlog.Logger) FSFinder

func (FSFinder) Find

func (f FSFinder) Find(id int) (Disk, bool, error)

type Finder

type Finder interface {
	Find(id int) (Disk, bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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