Documentation
¶
Index ¶
- type Client
- func (c *Client) Find(ctx context.Context, req *FindRequest) (*FindResponse, error)
- func (c *Client) Index(ctx context.Context) (*IndexResponse, error)
- func (c *Client) MassUpdate(ctx context.Context, req *MassUpdateRequest) (*MassUpdateResponse, error)
- func (c *Client) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
- type FindRequest
- type FindResponse
- type HTTPClient
- type IndexResponse
- type MassUpdateRequest
- type MassUpdateResponse
- type UpdateRequest
- type UpdateResponse
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) (*FindResponse, 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 ¶
func (c *Client) MassUpdate(ctx context.Context, req *MassUpdateRequest) (*MassUpdateResponse, error)
MassUpdate Set/Unset multiple ceph flags at once.
func (*Client) Update ¶
func (c *Client) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
Update Set or clear (unset) a specific ceph flag
type FindRequest ¶
type FindRequest struct {
Flag string `url:"flag",json:"flag"` // The name of the flag name to get.
}
type FindResponse ¶
type FindResponse bool
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 *bool `url:"nobackfill,omitempty",json:"nobackfill,omitempty"` // Backfilling of PGs is suspended.
NodeepScrub *bool `url:"nodeep-scrub,omitempty",json:"nodeep-scrub,omitempty"` // Deep Scrubbing is disabled.
Nodown *bool `url:"nodown,omitempty",json:"nodown,omitempty"` // OSD failure reports are being ignored, such that the monitors will not mark OSDs down.
Noin *bool `url:"noin,omitempty",json:"noin,omitempty"` // OSDs that were previously marked out will not be marked back in when they start.
Noout *bool `url:"noout,omitempty",json:"noout,omitempty"` // OSDs will not automatically be marked out after the configured interval.
Norebalance *bool `url:"norebalance,omitempty",json:"norebalance,omitempty"` // Rebalancing of PGs is suspended.
Norecover *bool `url:"norecover,omitempty",json:"norecover,omitempty"` // Recovery of PGs is suspended.
Noscrub *bool `url:"noscrub,omitempty",json:"noscrub,omitempty"` // Scrubbing is disabled.
Notieragent *bool `url:"notieragent,omitempty",json:"notieragent,omitempty"` // Cache tiering activity is suspended.
Noup *bool `url:"noup,omitempty",json:"noup,omitempty"` // OSDs are not allowed to start.
Pause *bool `url:"pause,omitempty",json:"pause,omitempty"` // Pauses read and writes.
}
type MassUpdateResponse ¶
type MassUpdateResponse string
type UpdateRequest ¶
type UpdateResponse ¶
type UpdateResponse map[string]interface{}
Click to show internal directories.
Click to hide internal directories.