virtual_disks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskConnectHandle

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

func (DiskConnectHandle) Capacity

func (this DiskConnectHandle) Capacity() int64

func (DiskConnectHandle) Close

func (this DiskConnectHandle) Close() error

func (DiskConnectHandle) QueryAllocatedBlocks

QueryAllocatedBlocks invokes the VDDK function of the same name.

func (DiskConnectHandle) ReadAt

func (this DiskConnectHandle) ReadAt(p []byte, off int64) (n int, err error)

func (DiskConnectHandle) WriteAt

func (this DiskConnectHandle) WriteAt(p []byte, off int64) (n int, err error)

type DiskReaderWriter

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

func NewDiskReaderWriter

func NewDiskReaderWriter(diskHandle DiskConnectHandle, logger logrus.FieldLogger) DiskReaderWriter

func Open

func OpenFCD

func OpenFCD(serverName string, thumbPrint string, userName string, password string, fcdId string, fcdssid string, datastore string,
	flags uint32, readOnly bool, transportMode string, identity string, logger logrus.FieldLogger) (DiskReaderWriter, disklib.VddkError)

func (DiskReaderWriter) Close

func (this DiskReaderWriter) Close() error

func (DiskReaderWriter) QueryAllocatedBlocks

func (DiskReaderWriter) Read

func (this DiskReaderWriter) Read(p []byte) (n int, err error)

func (DiskReaderWriter) ReadAt

func (this DiskReaderWriter) ReadAt(p []byte, off int64) (n int, err error)

func (DiskReaderWriter) Seek

func (this DiskReaderWriter) Seek(offset int64, whence int) (int64, error)

func (DiskReaderWriter) Write

func (this DiskReaderWriter) Write(p []byte) (n int, err error)

func (DiskReaderWriter) WriteAt

func (this DiskReaderWriter) WriteAt(p []byte, off int64) (n int, err error)

Jump to

Keyboard shortcuts

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