MCPcopy Create free account
hub / github.com/digitalocean/go-libvirt / StoragePoolCreate

Method StoragePoolCreate

remote_protocol.gen.go:6726–6746  ·  view source on GitHub ↗

StoragePoolCreate is the go wrapper for REMOTE_PROC_STORAGE_POOL_CREATE.

(Pool StoragePool, Flags StoragePoolCreateFlags)

Source from the content-addressed store, hash-verified

6724
6725// StoragePoolCreate is the go wrapper for REMOTE_PROC_STORAGE_POOL_CREATE.
6726func (l *Libvirt) StoragePoolCreate(Pool StoragePool, Flags StoragePoolCreateFlags) (err error) {
6727 var buf []byte
6728
6729 args := StoragePoolCreateArgs {
6730 Pool: Pool,
6731 Flags: Flags,
6732 }
6733
6734 buf, err = encode(&args)
6735 if err != nil {
6736 return
6737 }
6738
6739
6740 _, err = l.requestStream(78, constants.Program, buf, nil, nil)
6741 if err != nil {
6742 return
6743 }
6744
6745 return
6746}
6747
6748// StoragePoolBuild is the go wrapper for REMOTE_PROC_STORAGE_POOL_BUILD.
6749func (l *Libvirt) StoragePoolBuild(Pool StoragePool, Flags StoragePoolBuildFlags) (err error) {

Callers

nothing calls this directly

Calls 2

requestStreamMethod · 0.95
encodeFunction · 0.85

Tested by

no test coverage detected