rpcvmx

package
v0.0.0-...-25eff15 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2017 License: Apache-2.0 Imports: 4 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct{}

Config gives access to the vmx config through the VMware backdoor

func NewConfig

func NewConfig() *Config

NewConfig creates a new Config object

func (*Config) Bool

func (c *Config) Bool(key string, defaultValue bool) (bool, error)

Bool returns the config boolean in the guestinfo.* namespace

func (*Config) Int

func (c *Config) Int(key string, defaultValue int) (int, error)

Int returns the config integer in the guestinfo.* namespace

func (*Config) SetBool

func (c *Config) SetBool(key string, value bool) error

SetString sets the guestinfo.KEY with the bool VALUE

func (*Config) SetInt

func (c *Config) SetInt(key string, value int) error

SetString sets the guestinfo.KEY with the int VALUE

func (*Config) SetString

func (c *Config) SetString(key string, value string) error

SetString sets the guestinfo.KEY with the string VALUE

func (*Config) String

func (c *Config) String(key string, defaultValue string) (string, error)

String returns the config string in the guestinfo.* namespace

Jump to

Keyboard shortcuts

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