Documentation
¶
Overview ¶
Package netresize is the runtime interface for resizing a VM's NIC count.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedBackend = errors.New("backend does not support net resize")
ErrUnsupportedBackend signals the resolved hypervisor cannot resize NICs.
Functions ¶
This section is empty.
Types ¶
type Plumbing ¶
type Plumbing interface {
Add(ctx context.Context, vmID string, vmCfg *types.VMConfig, specs ...network.AddSpec) ([]*types.NetworkConfig, error)
Remove(ctx context.Context, vmID string, indices ...int) error
}
Plumbing is the host-side network ops NetResize delegates to; network.Network satisfies it.
type Resizer ¶
type Resizer interface {
NetResize(ctx context.Context, vmRef string, spec Spec, plumbing Plumbing) (Result, error)
}
Resizer resizes a running VM's NIC count.
Click to show internal directories.
Click to hide internal directories.