StoragePoolCreate is the go wrapper for REMOTE_PROC_STORAGE_POOL_CREATE.
(Pool StoragePool, Flags StoragePoolCreateFlags)
| 6724 | |
| 6725 | // StoragePoolCreate is the go wrapper for REMOTE_PROC_STORAGE_POOL_CREATE. |
| 6726 | func (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. |
| 6749 | func (l *Libvirt) StoragePoolBuild(Pool StoragePool, Flags StoragePoolBuildFlags) (err error) { |
nothing calls this directly
no test coverage detected