disk

package
v2.140.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
	Runner boshsys.CmdRunner
}

func (*Formatter) Format

func (f *Formatter) Format(diskNumber, partitionNumber string) error

type Linker

type Linker struct {
	Runner boshsys.CmdRunner
}
func (l *Linker) Link(location, target string) error

func (*Linker) LinkTarget

func (l *Linker) LinkTarget(location string) (target string, err error)

type Manager

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

func NewWindowsDiskManager

func NewWindowsDiskManager(cmdRunner system.CmdRunner) *Manager

func (*Manager) GetFormatter

func (m *Manager) GetFormatter() WindowsDiskFormatter

func (*Manager) GetLinker

func (m *Manager) GetLinker() WindowsDiskLinker

func (*Manager) GetPartitioner

func (m *Manager) GetPartitioner() WindowsDiskPartitioner

type Partitioner

type Partitioner struct {
	Runner boshsys.CmdRunner
}

func (*Partitioner) GetCountOnDisk

func (p *Partitioner) GetCountOnDisk(diskNumber string) (string, error)

type WindowsDiskFormatter

type WindowsDiskFormatter interface {
	Format(diskNumber, partitionNumber string) error
}

type WindowsDiskLinker

type WindowsDiskLinker interface {
	LinkTarget(location string) (target string, err error)
	Link(location, target string) error
}

type WindowsDiskPartitioner

type WindowsDiskPartitioner interface {
	GetCountOnDisk(diskNumber string) (string, error)
}

Directories

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

Jump to

Keyboard shortcuts

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