list

package
v0.0.0-...-2d2b929 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToParts

func ToParts(p string) []string

Types

type Element

type Element struct {
	Path   string
	Object govmomi.Reference
}

func ToElement

func ToElement(r govmomi.Reference, prefix string) Element

type Lister

type Lister struct {
	Client    *govmomi.Client
	Reference types.ManagedObjectReference
	Prefix    string
	All       bool
}

func (Lister) List

func (l Lister) List() ([]Element, error)

func (Lister) ListComputeResource

func (l Lister) ListComputeResource() ([]Element, error)

func (Lister) ListDatacenter

func (l Lister) ListDatacenter() ([]Element, error)

func (Lister) ListFolder

func (l Lister) ListFolder() ([]Element, error)

func (Lister) ListResourcePool

func (l Lister) ListResourcePool() ([]Element, error)

type Recurser

type Recurser struct {
	Client *govmomi.Client

	// All configures the recurses to fetch complete objects for leaf nodes.
	All bool

	// TraverseLeafs configures the Recurser to traverse traversable leaf nodes.
	// This is typically set to true when used from the ls command, where listing
	// a folder means listing its contents. This is typically set to false for
	// commands that take managed entities that are not folders as input.
	TraverseLeafs bool
}

func (Recurser) Recurse

func (r Recurser) Recurse(root Element, parts []string) ([]Element, error)

Jump to

Keyboard shortcuts

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