mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-05-22 07:16:41 +00:00
Bumps [github.com/ceph/go-ceph](https://github.com/ceph/go-ceph) from 0.32.1-0.20250307053135-38b9676b1d4e to 0.33.0. - [Release notes](https://github.com/ceph/go-ceph/releases) - [Changelog](https://github.com/ceph/go-ceph/blob/master/docs/release-process.md) - [Commits](https://github.com/ceph/go-ceph/commits/v0.33.0) --- updated-dependencies: - dependency-name: github.com/ceph/go-ceph dependency-version: 0.33.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
29 lines
515 B
Go
29 lines
515 B
Go
package rados
|
|
|
|
// #cgo LDFLAGS: -lrados
|
|
// #include <stdlib.h>
|
|
// #include <rados/librados.h>
|
|
import "C"
|
|
|
|
import (
|
|
"unsafe"
|
|
)
|
|
|
|
// GetAddrs returns the addresses of the RADOS session,
|
|
// suitable for blocklisting.
|
|
//
|
|
// Implements:
|
|
//
|
|
// int rados_getaddrs(rados_t cluster, char **addrs)
|
|
func (c *Conn) GetAddrs() (string, error) {
|
|
var cAddrs *C.char
|
|
defer C.free(unsafe.Pointer(cAddrs))
|
|
|
|
ret := C.rados_getaddrs(c.cluster, &cAddrs)
|
|
if ret < 0 {
|
|
return "", getError(ret)
|
|
}
|
|
|
|
return C.GoString(cAddrs), nil
|
|
}
|