vdiskmanager

package
v0.0.0-...-53979b8 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package vdiskmanager implements a VMware vdiskmanager command wrapper.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(src string) error

Check check for disk chain consistency.

func Convert

func Convert(src, dst string, diskType int) error

Convert convert the specified disk.

func Create

func Create(dst string, config *Config) error

Create create disk.

func Defrag

func Defrag(src string) error

Defrag defragment the specified virtual disk.

func Delete

func Delete(src string) error

Delete make disk deletable.

func Expand

func Expand(capacity int, src string) error

Expand expand the disk to the specified capacity.

func Prepare

func Prepare(src string) error

Prepare prepare the mounted virtual disk specified by the volume path for shrinking.

func Rename

func Rename(src, dst string) error

Rename rename the specified virtual disk.

func Repair

func Repair(src string) error

Repair check a sparse virtual disk for consistency and attempt to repair any errors.

func Shrink

func Shrink(src string) error

Shrink shrink the specified virtual disk.

Types

type AdapterType

type AdapterType int

AdapterType represents a adapter type.

const (
	// LsiLogic is a lsilogic type.
	LsiLogic AdapterType = iota
	// Ide is a ide type.
	Ide
	// BusLogic is a buslogic type.
	BusLogic
)

func (AdapterType) String

func (a AdapterType) String() string

String implements a fmt.Stringer interface.

type Config

type Config struct {
	Size     int
	DiskType int
	Adapter  AdapterType
}

Config represents a vdiskmanager create config.

Jump to

Keyboard shortcuts

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