rados

package
v0.0.0-...-d331104 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RadosConn

type RadosConn struct {
	// contains filtered or unexported fields
}

RadosConn implements the Conn interface with the underlying *rados.Conn that talks to a real Ceph cluster.

func NewRadosConn

func NewRadosConn(user, configFile string, timeout time.Duration, logger *logrus.Logger) (*RadosConn, error)

NewRadosConn returns a new RadosConn. Unlike the native rados.Conn, there is no need to manage the connection before/after talking to the rados; it is the responsibility of this *RadosConn to manage the connection.

func (*RadosConn) GetPoolStats

func (c *RadosConn) GetPoolStats(pool string) (*ceph.PoolStat, error)

GetPoolStats returns the count of unfound objects for the given rados pool.

func (*RadosConn) MgrCommand

func (c *RadosConn) MgrCommand(args [][]byte) (buffer []byte, info string, err error)

MgrCommand executes a manager command to rados.

func (*RadosConn) MonCommand

func (c *RadosConn) MonCommand(args []byte) (buffer []byte, info string, err error)

MonCommand executes a monitor command to rados.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL