govmomi: github.com/juju/govmomi/govc/flags Index | Files

package flags

import "github.com/juju/govmomi/govc/flags"

Index

Package Files

client.go datacenter.go datastore.go debug.go empty.go host_system.go network.go output.go resource_pool.go search.go version.go virtual_machine.go

Constants

const (
    SearchVirtualMachines = iota + 1
    SearchHosts
)

Variables

var (
    ErrDatastoreDirNotExist  = errors.New("datastore directory does not exist")
    ErrDatastoreFileNotExist = errors.New("datastore file does not exist")
)

func ParseVersion Uses

func ParseVersion(s string) (version, error)

type ClientFlag Uses

type ClientFlag struct {
    *DebugFlag
    // contains filtered or unexported fields
}

func (*ClientFlag) Client Uses

func (flag *ClientFlag) Client() (*vim25.Client, error)

func (*ClientFlag) Process Uses

func (flag *ClientFlag) Process() error

func (*ClientFlag) Register Uses

func (flag *ClientFlag) Register(f *flag.FlagSet)

func (*ClientFlag) Set Uses

func (flag *ClientFlag) Set(s string) error

func (*ClientFlag) String Uses

func (flag *ClientFlag) String() string

func (*ClientFlag) URLWithoutPassword Uses

func (flag *ClientFlag) URLWithoutPassword() *url.URL

type DatacenterFlag Uses

type DatacenterFlag struct {
    *ClientFlag
    *OutputFlag
    // contains filtered or unexported fields
}

func (*DatacenterFlag) Datacenter Uses

func (flag *DatacenterFlag) Datacenter() (*object.Datacenter, error)

func (*DatacenterFlag) Finder Uses

func (flag *DatacenterFlag) Finder() (*find.Finder, error)

func (*DatacenterFlag) Process Uses

func (flag *DatacenterFlag) Process() error

func (*DatacenterFlag) Register Uses

func (flag *DatacenterFlag) Register(f *flag.FlagSet)

type DatastoreFlag Uses

type DatastoreFlag struct {
    *DatacenterFlag
    // contains filtered or unexported fields
}

func (*DatastoreFlag) Datastore Uses

func (flag *DatastoreFlag) Datastore() (*object.Datastore, error)

func (*DatastoreFlag) DatastorePath Uses

func (flag *DatastoreFlag) DatastorePath(name string) (string, error)

func (*DatastoreFlag) DatastoreURL Uses

func (flag *DatastoreFlag) DatastoreURL(path string) (*url.URL, error)

func (*DatastoreFlag) Process Uses

func (flag *DatastoreFlag) Process() error

func (*DatastoreFlag) Register Uses

func (flag *DatastoreFlag) Register(f *flag.FlagSet)

func (*DatastoreFlag) Stat Uses

func (flag *DatastoreFlag) Stat(file string) (types.BaseFileInfo, error)

type DebugFlag Uses

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

func (*DebugFlag) Process Uses

func (flag *DebugFlag) Process() error

func (*DebugFlag) Register Uses

func (flag *DebugFlag) Register(f *flag.FlagSet)

type EmptyFlag Uses

type EmptyFlag struct{}

func (*EmptyFlag) Process Uses

func (flag *EmptyFlag) Process() error

func (*EmptyFlag) Register Uses

func (flag *EmptyFlag) Register(f *flag.FlagSet)

type HostSystemFlag Uses

type HostSystemFlag struct {
    *ClientFlag
    *DatacenterFlag
    *SearchFlag
    // contains filtered or unexported fields
}

func (*HostSystemFlag) HostNetworkSystem Uses

func (flag *HostSystemFlag) HostNetworkSystem() (*object.HostNetworkSystem, error)

func (*HostSystemFlag) HostSystem Uses

func (flag *HostSystemFlag) HostSystem() (*object.HostSystem, error)

func (*HostSystemFlag) HostSystemIfSpecified Uses

func (flag *HostSystemFlag) HostSystemIfSpecified() (*object.HostSystem, error)

func (*HostSystemFlag) Process Uses

func (flag *HostSystemFlag) Process() error

func (*HostSystemFlag) Register Uses

func (flag *HostSystemFlag) Register(f *flag.FlagSet)

type NetworkFlag Uses

type NetworkFlag struct {
    *DatacenterFlag
    // contains filtered or unexported fields
}

func NewNetworkFlag Uses

func NewNetworkFlag() *NetworkFlag

func (*NetworkFlag) Device Uses

func (flag *NetworkFlag) Device() (types.BaseVirtualDevice, error)

func (*NetworkFlag) Network Uses

func (flag *NetworkFlag) Network() (object.NetworkReference, error)

func (*NetworkFlag) Process Uses

func (flag *NetworkFlag) Process() error

func (*NetworkFlag) Register Uses

func (flag *NetworkFlag) Register(f *flag.FlagSet)

func (*NetworkFlag) Set Uses

func (flag *NetworkFlag) Set(name string) error

func (*NetworkFlag) String Uses

func (flag *NetworkFlag) String() string

type OutputFlag Uses

type OutputFlag struct {
    JSON bool
    TTY  bool
}

func (*OutputFlag) Log Uses

func (flag *OutputFlag) Log(s string) (int, error)

Log outputs the specified string, prefixed with the current time. A newline is not automatically added. If the specified string starts with a '\r', the current line is cleared first.

func (*OutputFlag) Process Uses

func (flag *OutputFlag) Process() error

func (*OutputFlag) ProgressLogger Uses

func (flag *OutputFlag) ProgressLogger(prefix string) *progressLogger

func (*OutputFlag) Register Uses

func (flag *OutputFlag) Register(f *flag.FlagSet)

func (*OutputFlag) Write Uses

func (flag *OutputFlag) Write(b []byte) (int, error)

func (*OutputFlag) WriteResult Uses

func (flag *OutputFlag) WriteResult(result OutputWriter) error

func (*OutputFlag) WriteString Uses

func (flag *OutputFlag) WriteString(s string) (int, error)

type OutputWriter Uses

type OutputWriter interface {
    Write(io.Writer) error
}

type ResourcePoolFlag Uses

type ResourcePoolFlag struct {
    *DatacenterFlag
    // contains filtered or unexported fields
}

func (*ResourcePoolFlag) Process Uses

func (flag *ResourcePoolFlag) Process() error

func (*ResourcePoolFlag) Register Uses

func (flag *ResourcePoolFlag) Register(f *flag.FlagSet)

func (*ResourcePoolFlag) ResourcePool Uses

func (flag *ResourcePoolFlag) ResourcePool() (*object.ResourcePool, error)

type SearchFlag Uses

type SearchFlag struct {
    *ClientFlag
    *DatacenterFlag
    // contains filtered or unexported fields
}

func NewSearchFlag Uses

func NewSearchFlag(t int) *SearchFlag

func (*SearchFlag) HostSystem Uses

func (flag *SearchFlag) HostSystem() (*object.HostSystem, error)

func (*SearchFlag) HostSystems Uses

func (flag *SearchFlag) HostSystems(args []string) ([]*object.HostSystem, error)

func (*SearchFlag) IsSet Uses

func (flag *SearchFlag) IsSet() bool

func (*SearchFlag) Process Uses

func (flag *SearchFlag) Process() error

func (*SearchFlag) Register Uses

func (flag *SearchFlag) Register(fs *flag.FlagSet)

func (*SearchFlag) VirtualMachine Uses

func (flag *SearchFlag) VirtualMachine() (*object.VirtualMachine, error)

func (*SearchFlag) VirtualMachines Uses

func (flag *SearchFlag) VirtualMachines(args []string) ([]*object.VirtualMachine, error)

type VirtualMachineFlag Uses

type VirtualMachineFlag struct {
    *ClientFlag
    *DatacenterFlag
    *SearchFlag
    // contains filtered or unexported fields
}

func (*VirtualMachineFlag) Process Uses

func (flag *VirtualMachineFlag) Process() error

func (*VirtualMachineFlag) Register Uses

func (flag *VirtualMachineFlag) Register(f *flag.FlagSet)

func (*VirtualMachineFlag) VirtualMachine Uses

func (flag *VirtualMachineFlag) VirtualMachine() (*object.VirtualMachine, error)

Package flags imports 24 packages (graph) and is imported by 22 packages. Updated 2016-07-18. Refresh now. Tools for package owners.