Documentation ¶
Index ¶
- func LoadGovcEnvVars(vsphere types.Vsphere, vm *types.VM)
- func NewVM(ctx context.Context, dryRun bool, obj *object.VirtualMachine, config *types.VM) types.Machine
- func NewVMwareCluster(platform types.PlatformConfig) (types.Cluster, error)
- type Session
- func (s Session) Clone(vm ptypes.VM, config *konfigadm.Config) (*object.VirtualMachine, error)
- func (s Session) CloneTemplate(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) FindTemplate(libraryName, nameOrID string) (*library.Item, 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 NewVMwareCluster ¶
func NewVMwareCluster(platform types.PlatformConfig) (types.Cluster, error)
NewVMwareCluster opens a new vmware session using environment variables
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) CloneTemplate ¶ added in v0.21.1
func (s Session) CloneTemplate(vm ptypes.VM, config *konfigadm.Config) (*object.VirtualMachine, error)
CloneTemplate creates a new VM from a content library template
func (*Session) FindByInstanceUUID ¶
FindByInstanceUUID finds an object by its instance UUID.
func (*Session) FindByUUID ¶
FindByUUID finds an object by its UUID.
func (Session) FindTemplate ¶ added in v0.21.1
Click to show internal directories.
Click to hide internal directories.