flags

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 1 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 bool

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 map[string]interface{}

type MassUpdateResponse

type MassUpdateResponse string

type UpdateRequest

type UpdateRequest struct {
	Flag  string `url:"flag",json:"flag"`   // The ceph flag to update
	Value bool   `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