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 map[string]interface{}
type MassUpdateResponse ¶
type MassUpdateResponse string
type UpdateRequest ¶
type UpdateResponse ¶
type UpdateResponse map[string]interface{}
Click to show internal directories.
Click to hide internal directories.