mgr

package
v0.0.2 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 ChildCreateRequest

type ChildCreateRequest struct {
	Node string `url:"node",json:"node"` // The cluster node name.

	// The following parameters are optional
	Id *string `url:"id,omitempty",json:"id,omitempty"` // The ID for the manager, 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 Manager

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)

Delete Destroy Ceph Manager.

func (*Client) Index

func (c *Client) Index(ctx context.Context, req *IndexRequest) (*IndexResponse, error)

Index MGR directory index.

type DeleteRequest

type DeleteRequest struct {
	Id   string `url:"id",json:"id"`     // The ID of the manager
	Node string `url:"node",json:"node"` // The cluster node name.

}

type DeleteResponse

type DeleteResponse string

type HTTPClient

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

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 MGR

	// The following parameters are optional
	Addr *string `url:"addr,omitempty",json:"addr,omitempty"`
	Host *string `url:"host,omitempty",json:"host,omitempty"`
}

Jump to

Keyboard shortcuts

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