Documentation ¶
Index ¶
- func AddRole(ctx context.Context, client *vim25.Client, params *jt.VMAddRoleParams) error
- func Delete(ctx context.Context, client *vim25.Client, params *jt.VMDeleteParams) error
- func DeleteSnapshot(ctx context.Context, client *vim25.Client, params *jt.VMSnapshotDeleteParams) error
- func Find(ctx context.Context, client *vim25.Client, params *jt.VMFindParams) (*jt.VMFound, error)
- func FindByPath(ctx context.Context, client *vim25.Client, DCname, path string) (*object.VirtualMachine, error)
- func FindByUUID(ctx context.Context, client *vim25.Client, DCName, uuid string) (*object.VirtualMachine, error)
- func Info(ctx context.Context, client *vim25.Client, params *jt.VMInfoParams) (*jt.VMSummary, error)
- func IsVMExist(ctx context.Context, c *vim25.Client, params *jt.VMDeployParams) (bool, error)
- func List(ctx context.Context, c *vim25.Client, params *jt.VMListParams) (map[string]string, error)
- func PowerON(ctx context.Context, vm *object.VirtualMachine) error
- func RestoreFromSnapshot(ctx context.Context, client *vim25.Client, ...) error
- func RolesList(ctx context.Context, client *vim25.Client, params *jt.VMRolesListParams) ([]jt.Role, error)
- func SnapshotCreate(ctx context.Context, client *vim25.Client, params *jt.SnapshotCreateParams) (int32, error)
- func SnapshotsList(ctx context.Context, client *vim25.Client, params *jt.VMSnapshotsListParams) ([]jt.Snapshot, error)
- func WaitForIP(ctx context.Context, vm *object.VirtualMachine) ([]string, error)
- type Deployment
- type Network
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteSnapshot ¶
func DeleteSnapshot(ctx context.Context, client *vim25.Client, params *jt.VMSnapshotDeleteParams) error
DeleteSnapshot deletes snapshot
func FindByPath ¶
func FindByPath(ctx context.Context, client *vim25.Client, DCname, path string) (*object.VirtualMachine, error)
FindByPath find and returns VM by Inventory Path
func FindByUUID ¶
func FindByUUID(ctx context.Context, client *vim25.Client, DCName, uuid string) (*object.VirtualMachine, error)
FindByUUID find and returns VM by its UUID
func Info ¶
func Info(ctx context.Context, client *vim25.Client, params *jt.VMInfoParams) (*jt.VMSummary, error)
Info returns summary information about Virtual Machines
func RestoreFromSnapshot ¶
func RestoreFromSnapshot(ctx context.Context, client *vim25.Client, params *jt.VMRestoreFromSnapshotParams) error
RestoreFromSnapshot restore VM from snapshot
func RolesList ¶
func RolesList(ctx context.Context, client *vim25.Client, params *jt.VMRolesListParams) ([]jt.Role, error)
RolesList get VM roles
func SnapshotCreate ¶
func SnapshotCreate(ctx context.Context, client *vim25.Client, params *jt.SnapshotCreateParams) (int32, error)
SnapshotCreate creates VM snapshot
Types ¶
type Deployment ¶
type Deployment struct { Client *vim25.Client Finder *find.Finder // contains filtered or unexported fields }
func NewDeployment ¶
func NewDeployment(ctx context.Context, c *vim25.Client, params *jt.VMDeployParams, l log.Logger, cfg *config.Config) (*Deployment, error)
NewDeployment create a new deployment object. It choose needed resources
func (*Deployment) Import ¶
func (o *Deployment) Import(ctx context.Context, OVAURL string, anno string) (*types.ManagedObjectReference, error)
Click to show internal directories.
Click to hide internal directories.