libvirt

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	*libvirt.Libvirt
	// contains filtered or unexported fields
}

func New

func New(basePath string, libvirt *libvirt.Libvirt) *Manager

func (*Manager) Clone

func (m *Manager) Clone(baseImageID, pool, name string, newSize uint64) (*image.Image, error)

func (*Manager) Create

func (m *Manager) Create(pool, name string, img io.ReadCloser) (*image.Image, error)

func (*Manager) Get

func (m *Manager) Get(pool, name string) (*image.Image, error)

func (*Manager) List

func (m *Manager) List(pool string) ([]image.Image, error)

func (*Manager) Remove

func (m *Manager) Remove(ID string) error

Jump to

Keyboard shortcuts

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