Documentation
¶
Overview ¶
Package osd from common/admin contains set of APIs to manage OSD configuration and administration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
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
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 ¶
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
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
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.