Documentation ¶
Index ¶
- func LoadGovcEnvVars(vm *types.VM)
- func NewVM(ctx context.Context, dryRun bool, obj *object.VirtualMachine) types.Machine
- func NewVMwareCluster(prefix string) (types.Cluster, error)
- type Session
- func (s Session) Clone(vm ptypes.VM, config *konfigadm.Config) (*object.VirtualMachine, error)
- func (s *Session) FindByInstanceUUID(ctx context.Context, uuid string) (object.Reference, error)
- func (s *Session) FindByUUID(ctx context.Context, uuid string) (object.Reference, error)
- func (s Session) FindVM(nameOrID string) (*object.VirtualMachine, error)
- func (s Session) GetVMs(ctx context.Context, prefix string, vm *types.VM) ([]*object.VirtualMachine, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadGovcEnvVars ¶
Types ¶
type Session ¶
type Session struct { logger.Logger *govmomi.Client Finder *find.Finder // contains filtered or unexported fields }
Session is a vSphere session with a configured Finder.
func GetSessionFromEnv ¶
func (Session) Clone ¶
Clone kicks off a clone operation on vCenter to create a new virtual machine.
func (*Session) FindByInstanceUUID ¶
FindByInstanceUUID finds an object by its instance UUID.
func (*Session) FindByUUID ¶
FindByUUID finds an object by its UUID.
Click to show internal directories.
Click to hide internal directories.