vmop

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCreateOnly added in v0.6.1

func WithCreateOnly(createOnly bool) func(*VirtualMachineOperation)

func WithForce added in v0.6.1

func WithForce(force bool) func(*VirtualMachineOperation)

func WithWaitComplete added in v0.6.1

func WithWaitComplete(waitComplete bool) func(*VirtualMachineOperation)

Types

type VirtualMachineOperation

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

func New

func (VirtualMachineOperation) Evict

func (v VirtualMachineOperation) Evict(ctx context.Context, vmName, vmNamespace string) (msg string, err error)

func (VirtualMachineOperation) Restart

func (v VirtualMachineOperation) Restart(ctx context.Context, vmName, vmNamespace string) (msg string, err error)

func (VirtualMachineOperation) Start

func (v VirtualMachineOperation) Start(ctx context.Context, vmName, vmNamespace string) (msg string, err error)

func (VirtualMachineOperation) Stop

func (v VirtualMachineOperation) Stop(ctx context.Context, vmName, vmNamespace string) (msg string, err error)

Jump to

Keyboard shortcuts

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