StoragePoolBuild is the go wrapper for REMOTE_PROC_STORAGE_POOL_BUILD.
(Pool StoragePool, Flags StoragePoolBuildFlags)
| 6747 | |
| 6748 | // StoragePoolBuild is the go wrapper for REMOTE_PROC_STORAGE_POOL_BUILD. |
| 6749 | func (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. |
| 6772 | func (l *Libvirt) StoragePoolDestroy(Pool StoragePool) (err error) { |
nothing calls this directly
no test coverage detected