osd

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package osd from common/admin contains set of APIs to manage OSD configuration and administration.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyArgument may be returned if argument is empty.
	ErrEmptyArgument = errors.New("Argument must contain at least one item")
	// ErrInvalidArgument may be returned if argument is invalid.
	ErrInvalidArgument = getError(-C.EINVAL)
)

Functions

This section is empty.

Types

type AddressEntry added in v0.39.0

type AddressEntry struct {
	Addr   string
	Expire float64
}

AddressEntry contains the ip or network address string along with the optional expire value in seconds.

type Admin

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

Admin is used to administer Ceph OSDs.

func NewFromConn

func NewFromConn(conn Commander) *Admin

NewFromConn creates an new management object from a preexisting rados connection. The existing connection can be rados.Conn or any type implementing the RadosCommander interface.

func (*Admin) OSDBlocklist added in v0.39.0

func (osda *Admin) OSDBlocklist() (*[]Blocklist, error)

OSDBlocklist returns the list of blocklisted clients.

Similar To:

ceph osd blocklist ls

func (*Admin) OSDBlocklistAdd added in v0.39.0

func (osda *Admin) OSDBlocklistAdd(entry AddressEntry) error

OSDBlocklistAdd adds an ip address or network address in CIDR format to the blocklist.

Similar To:

ceph osd blocklist [range] add <ip_addr|cidr_network> [expire]

func (*Admin) OSDBlocklistRemove added in v0.39.0

func (osda *Admin) OSDBlocklistRemove(entry AddressEntry) error

OSDBlocklistRemove removes an ip address or network address from the blocklist.

Similar To:

ceph osd blocklist [range] rm <ip_addr|cidr_network>

type Blocklist added in v0.39.0

type Blocklist struct {
	Addr  string
	Until time.Time
}

Blocklist contains the address and expire value for a blocklist entry.

type Commander

type Commander interface {
	ccom.RadosCommander
}

Commander interface supports sending commands to Ceph.

Jump to

Keyboard shortcuts

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