mirror of
https://github.com/ceph/go-ceph
synced 2024-12-18 20:35:33 +00:00
17fbb4b3a0
This commit implements binding for rados_write_op_remove RADOS Write operation. Includes a unit test. Signed-off-by: Robert Vasek <robert.vasek@cern.ch>
20 lines
325 B
Go
20 lines
325 B
Go
//go:build ceph_preview
|
|
// +build ceph_preview
|
|
|
|
package rados
|
|
|
|
// #cgo LDFLAGS: -lrados
|
|
// #include <rados/librados.h>
|
|
// #include <stdlib.h>
|
|
//
|
|
import "C"
|
|
|
|
// Remove object.
|
|
// PREVIEW
|
|
//
|
|
// Implements:
|
|
// void rados_write_op_remove(rados_write_op_t write_op)
|
|
func (w *WriteOp) Remove() {
|
|
C.rados_write_op_remove(w.op)
|
|
}
|