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

Method StoragePoolBuild

remote_protocol.gen.go:6749–6769  ·  view source on GitHub ↗

StoragePoolBuild is the go wrapper for REMOTE_PROC_STORAGE_POOL_BUILD.

(Pool StoragePool, Flags StoragePoolBuildFlags)

Source from the content-addressed store, hash-verified

6747
6748// StoragePoolBuild is the go wrapper for REMOTE_PROC_STORAGE_POOL_BUILD.
6749func (l *Libvirt) StoragePoolBuild(Pool StoragePool, Flags StoragePoolBuildFlags) (err error) {
6750 var buf []byte
6751
6752 args := StoragePoolBuildArgs {
6753 Pool: Pool,
6754 Flags: Flags,
6755 }
6756
6757 buf, err = encode(&args)
6758 if err != nil {
6759 return
6760 }
6761
6762
6763 _, err = l.requestStream(79, constants.Program, buf, nil, nil)
6764 if err != nil {
6765 return
6766 }
6767
6768 return
6769}
6770
6771// StoragePoolDestroy is the go wrapper for REMOTE_PROC_STORAGE_POOL_DESTROY.
6772func (l *Libvirt) StoragePoolDestroy(Pool StoragePool) (err error) {

Callers

nothing calls this directly

Calls 2

requestStreamMethod · 0.95
encodeFunction · 0.85

Tested by

no test coverage detected