Documentation ¶
Index ¶
- Constants
- type Formatter
- type Linker
- type Manager
- type Partitioner
- func (p *Partitioner) AssignDriveLetter(diskNumber, partitionNumber string) (string, error)
- func (p *Partitioner) GetCountOnDisk(diskNumber string) (string, error)
- func (p *Partitioner) GetFreeSpaceOnDisk(diskNumber string) (int, error)
- func (p *Partitioner) InitializeDisk(diskNumber string) error
- func (p *Partitioner) PartitionDisk(diskNumber string) (string, error)
- type Protector
- type WindowsDiskFormatter
- type WindowsDiskLinker
- type WindowsDiskPartitioner
- type WindowsDiskProtector
Constants ¶
View Source
const ProtectCmdlet = "Protect-Path"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewWindowsDiskManager ¶
func (*Manager) GetFormatter ¶
func (m *Manager) GetFormatter() WindowsDiskFormatter
func (*Manager) GetLinker ¶
func (m *Manager) GetLinker() WindowsDiskLinker
func (*Manager) GetPartitioner ¶
func (m *Manager) GetPartitioner() WindowsDiskPartitioner
func (*Manager) GetProtector ¶
func (m *Manager) GetProtector() WindowsDiskProtector
type Partitioner ¶
func (*Partitioner) AssignDriveLetter ¶
func (p *Partitioner) AssignDriveLetter(diskNumber, partitionNumber string) (string, error)
func (*Partitioner) GetCountOnDisk ¶
func (p *Partitioner) GetCountOnDisk(diskNumber string) (string, error)
func (*Partitioner) GetFreeSpaceOnDisk ¶
func (p *Partitioner) GetFreeSpaceOnDisk(diskNumber string) (int, error)
func (*Partitioner) InitializeDisk ¶
func (p *Partitioner) InitializeDisk(diskNumber string) error
func (*Partitioner) PartitionDisk ¶
func (p *Partitioner) PartitionDisk(diskNumber string) (string, error)
type WindowsDiskFormatter ¶
type WindowsDiskLinker ¶
type WindowsDiskPartitioner ¶
type WindowsDiskPartitioner interface { GetCountOnDisk(diskNumber string) (string, error) GetFreeSpaceOnDisk(diskNumber string) (int, error) InitializeDisk(diskNumber string) error PartitionDisk(diskNumber string) (string, error) AssignDriveLetter(diskNumber, partitionNumber string) (string, error) }
type WindowsDiskProtector ¶
Click to show internal directories.
Click to hide internal directories.