flags

package
v0.0.15 Latest Latest
Warning

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

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

Documentation

Index

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) Find

func (c *Client) Find(ctx context.Context, req FindRequest) (util.PVEBool, 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) (string, error)

MassUpdate Set/Unset multiple ceph flags at once.

func (*Client) Update

func (c *Client) Update(ctx context.Context, req UpdateRequest) error

Update Set or clear (unset) a specific ceph flag

type FindRequest

type FindRequest struct {
	Flag Flag `url:"flag" json:"flag"` // The name of the flag name to get.

}

type Flag added in v0.0.15

type Flag string

func PtrFlag added in v0.0.15

func PtrFlag(i Flag) *Flag

type HTTPClient

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

type IndexResponse

type IndexResponse struct {
	Name Name `url:"name" json:"name"` // Flag name.

}

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 Name added in v0.0.15

type Name string

func PtrName added in v0.0.15

func PtrName(i Name) *Name

type UpdateRequest

type UpdateRequest struct {
	Flag  Flag         `url:"flag" json:"flag"`   // The ceph flag to update
	Value util.PVEBool `url:"value" json:"value"` // The new value of the flag

}

Jump to

Keyboard shortcuts

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