spec

package
v0.0.0-...-7bde1eb Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientDevice

type ClientDevice struct {
	MgsSpec lnet.TargetSpec
	FsName  string
}

ClientDevice represents a mgsspec:/fsname client mount device

func ClientDeviceFromString

func ClientDeviceFromString(inString string) (*ClientDevice, error)

ClientDeviceFromString attempts to parse a device out of a string and returns an instance of ClientDevice if successful

func (*ClientDevice) MarshalJSON

func (d *ClientDevice) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ClientDevice) String

func (d *ClientDevice) String() string

func (*ClientDevice) UnmarshalJSON

func (d *ClientDevice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler

Jump to

Keyboard shortcuts

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