flags

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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 util.SpecialBool

type HTTPClient

type HTTPClient interface {
	Do(context.Context, string, string, interface{}, interface{}) error
}

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 MassUpdateResponse

type MassUpdateResponse string

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

}

type UpdateResponse

type UpdateResponse map[string]interface{}

Jump to

Keyboard shortcuts

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