mon

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 2 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
	MonAddress *string `url:"mon-address,omitempty" json:"mon-address,omitempty"` // Overwrites autodetected monitor IP address(es). Must be in the public network(s) of Ceph.
	Monid      *string `url:"monid,omitempty" json:"monid,omitempty"`             // The ID for the monitor, when omitted the same as the nodename
}

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) (string, error)

ChildCreate Create Ceph Monitor and Manager

func (*Client) Delete

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

Delete Destroy Ceph Monitor and Manager.

func (*Client) Index

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

Index Get Ceph monitor list.

type DeleteRequest

type DeleteRequest struct {
	Monid string `url:"monid" json:"monid"` // Monitor ID
	Node  string `url:"node" json:"node"`   // The cluster node name.

}

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 {
	Name string `url:"name" json:"name"`

	// The following parameters are optional
	Addr             *string       `url:"addr,omitempty" json:"addr,omitempty"`
	CephVersion      *string       `url:"ceph_version,omitempty" json:"ceph_version,omitempty"`
	CephVersionShort *string       `url:"ceph_version_short,omitempty" json:"ceph_version_short,omitempty"`
	Direxists        *string       `url:"direxists,omitempty" json:"direxists,omitempty"`
	Host             *util.PVEBool `url:"host,omitempty" json:"host,omitempty"`
	Quorum           *util.PVEBool `url:"quorum,omitempty" json:"quorum,omitempty"`
	Rank             *int          `url:"rank,omitempty" json:"rank,omitempty"`
	Service          *int          `url:"service,omitempty" json:"service,omitempty"`
	State            *string       `url:"state,omitempty" json:"state,omitempty"`
}

Jump to

Keyboard shortcuts

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