Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildCreateRequest ¶
type ChildCreateRequest struct {
Node string `url:"node",json:"node"` // The cluster node name.
// The following parameters are optional
Hotstandby *bool `url:"hotstandby,omitempty",json:"hotstandby,omitempty"` // Determines whether a ceph-mds daemon should poll and replay the log of an active MDS. Faster switch on MDS failure, but needs more idle resources.
Name *string `url:"name,omitempty",json:"name,omitempty"` // The ID for the mds, when omitted the same as the nodename
}
type ChildCreateResponse ¶
type ChildCreateResponse string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(c HTTPClient) *Client
func (*Client) ChildCreate ¶
func (c *Client) ChildCreate(ctx context.Context, req *ChildCreateRequest) (*ChildCreateResponse, error)
ChildCreate Create Ceph Metadata Server (MDS)
func (*Client) Delete ¶
func (c *Client) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
Delete Destroy Ceph Metadata Server
func (*Client) Index ¶
func (c *Client) Index(ctx context.Context, req *IndexRequest) (*IndexResponse, error)
Index MDS directory index.
type DeleteRequest ¶
type DeleteResponse ¶
type DeleteResponse string
type HTTPClient ¶
type IndexRequest ¶
type IndexRequest struct {
Node string `url:"node",json:"node"` // The cluster node name.
}
type IndexResponse ¶
type IndexResponse []*struct {
State string `url:"state",json:"state"` // State of the MDS
// The following parameters are optional
Addr *string `url:"addr,omitempty",json:"addr,omitempty"`
Host *string `url:"host,omitempty",json:"host,omitempty"`
Rank *int `url:"rank,omitempty",json:"rank,omitempty"`
StandbyReplay *bool `url:"standby_replay,omitempty",json:"standby_replay,omitempty"` // If true, the standby MDS is polling the active MDS for faster recovery (hot standby).
}
Click to show internal directories.
Click to hide internal directories.