Documentation
¶
Index ¶
- type Client
- func (c *Client) Find(ctx context.Context, req FindRequest) (util.SpecialBool, error)
- func (c *Client) Index(ctx context.Context) ([]IndexResponse, error)
- func (c *Client) MassUpdate(ctx context.Context, req MassUpdateRequest) (string, error)
- func (c *Client) Update(ctx context.Context, req UpdateRequest) error
- type FindRequest
- type HTTPClient
- type IndexResponse
- type MassUpdateRequest
- type UpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(c HTTPClient) *Client
func (*Client) Find ¶
func (c *Client) Find(ctx context.Context, req FindRequest) (util.SpecialBool, error)
Find Get the status of a specific ceph flag.
func (*Client) Index ¶
func (c *Client) Index(ctx context.Context) ([]IndexResponse, error)
Index get the status of all ceph flags
func (*Client) MassUpdate ¶
MassUpdate Set/Unset multiple ceph flags at once.
type FindRequest ¶
type FindRequest struct {
Flag string `url:"flag" json:"flag"` // The name of the flag name to get.
}
type HTTPClient ¶
type IndexResponse ¶
type IndexResponse struct {
Name string `url:"name" json:"name"` // Flag name.
}
type MassUpdateRequest ¶
type MassUpdateRequest struct { // The following parameters are optional Nobackfill *util.SpecialBool `url:"nobackfill,omitempty" json:"nobackfill,omitempty"` // Backfilling of PGs is suspended. NodeepScrub *util.SpecialBool `url:"nodeep-scrub,omitempty" json:"nodeep-scrub,omitempty"` // Deep Scrubbing is disabled. Nodown *util.SpecialBool `url:"nodown,omitempty" json:"nodown,omitempty"` // OSD failure reports are being ignored, such that the monitors will not mark OSDs down. Noin *util.SpecialBool `url:"noin,omitempty" json:"noin,omitempty"` // OSDs that were previously marked out will not be marked back in when they start. Noout *util.SpecialBool `url:"noout,omitempty" json:"noout,omitempty"` // OSDs will not automatically be marked out after the configured interval. Norebalance *util.SpecialBool `url:"norebalance,omitempty" json:"norebalance,omitempty"` // Rebalancing of PGs is suspended. Norecover *util.SpecialBool `url:"norecover,omitempty" json:"norecover,omitempty"` // Recovery of PGs is suspended. Noscrub *util.SpecialBool `url:"noscrub,omitempty" json:"noscrub,omitempty"` // Scrubbing is disabled. Notieragent *util.SpecialBool `url:"notieragent,omitempty" json:"notieragent,omitempty"` // Cache tiering activity is suspended. Noup *util.SpecialBool `url:"noup,omitempty" json:"noup,omitempty"` // OSDs are not allowed to start. Pause *util.SpecialBool `url:"pause,omitempty" json:"pause,omitempty"` // Pauses read and writes. }
type UpdateRequest ¶
type UpdateRequest struct { Flag string `url:"flag" json:"flag"` // The ceph flag to update Value util.SpecialBool `url:"value" json:"value"` // The new value of the flag }
Click to show internal directories.
Click to hide internal directories.