Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - type Client
 - func (c *Client) Find(ctx context.Context, req FindRequest) (util.PVEBool, 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 Flag
 - type HTTPClient
 - type IndexResponse
 - type MassUpdateRequest
 - type Name
 - type UpdateRequest
 
Constants ¶
      View Source
      
  
const ( Flag_NOBACKFILL Flag = "nobackfill" Flag_NODEEP_SCRUB Flag = "nodeep-scrub" Flag_NODOWN Flag = "nodown" Flag_NOIN Flag = "noin" Flag_NOOUT Flag = "noout" Flag_NOREBALANCE Flag = "norebalance" Flag_NORECOVER Flag = "norecover" Flag_NOSCRUB Flag = "noscrub" Flag_NOTIERAGENT Flag = "notieragent" Flag_NOUP Flag = "noup" Flag_PAUSE Flag = "pause" Name_NOBACKFILL Name = "nobackfill" Name_NODEEP_SCRUB Name = "nodeep-scrub" Name_NODOWN Name = "nodown" Name_NOIN Name = "noin" Name_NOOUT Name = "noout" Name_NOREBALANCE Name = "norebalance" Name_NORECOVER Name = "norecover" Name_NOSCRUB Name = "noscrub" Name_NOTIERAGENT Name = "notieragent" Name_NOUP Name = "noup" Name_PAUSE Name = "pause" )
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) 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 Flag `url:"flag" json:"flag"` // The name of the flag name to get.
}
    type HTTPClient ¶
type IndexResponse ¶
type MassUpdateRequest ¶
type MassUpdateRequest struct {
	// The following parameters are optional
	Nobackfill  *util.PVEBool `url:"nobackfill,omitempty" json:"nobackfill,omitempty"`     // Backfilling of PGs is suspended.
	NodeepScrub *util.PVEBool `url:"nodeep-scrub,omitempty" json:"nodeep-scrub,omitempty"` // Deep Scrubbing is disabled.
	Nodown      *util.PVEBool `url:"nodown,omitempty" json:"nodown,omitempty"`             // OSD failure reports are being ignored, such that the monitors will not mark OSDs down.
	Noin        *util.PVEBool `url:"noin,omitempty" json:"noin,omitempty"`                 // OSDs that were previously marked out will not be marked back in when they start.
	Noout       *util.PVEBool `url:"noout,omitempty" json:"noout,omitempty"`               // OSDs will not automatically be marked out after the configured interval.
	Norebalance *util.PVEBool `url:"norebalance,omitempty" json:"norebalance,omitempty"`   // Rebalancing of PGs is suspended.
	Norecover   *util.PVEBool `url:"norecover,omitempty" json:"norecover,omitempty"`       // Recovery of PGs is suspended.
	Noscrub     *util.PVEBool `url:"noscrub,omitempty" json:"noscrub,omitempty"`           // Scrubbing is disabled.
	Notieragent *util.PVEBool `url:"notieragent,omitempty" json:"notieragent,omitempty"`   // Cache tiering activity is suspended.
	Noup        *util.PVEBool `url:"noup,omitempty" json:"noup,omitempty"`                 // OSDs are not allowed to start.
	Pause       *util.PVEBool `url:"pause,omitempty" json:"pause,omitempty"`               // Pauses read and writes.
}
    type UpdateRequest ¶
 Click to show internal directories. 
   Click to hide internal directories.