Documentation ¶
Index ¶
- func WithCreateOnly(createOnly bool) func(*VirtualMachineOperation)
- func WithForce(force bool) func(*VirtualMachineOperation)
- func WithWaitComplete(waitComplete bool) func(*VirtualMachineOperation)
- type VirtualMachineOperation
- func (v VirtualMachineOperation) Evict(ctx context.Context, vmName, vmNamespace string) (msg string, err error)
- func (v VirtualMachineOperation) Restart(ctx context.Context, vmName, vmNamespace string) (msg string, err error)
- func (v VirtualMachineOperation) Start(ctx context.Context, vmName, vmNamespace string) (msg string, err error)
- func (v VirtualMachineOperation) Stop(ctx context.Context, vmName, vmNamespace string) (msg string, err error)
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 New(client kubeclient.Client, opts ...func(*VirtualMachineOperation)) *VirtualMachineOperation
Click to show internal directories.
Click to hide internal directories.