Documentation ¶
Index ¶
- Constants
- type Action
- type Client
- func (c *Client) CmdSafety(ctx context.Context, req CmdSafetyRequest) (CmdSafetyResponse, error)
- func (c *Client) Config(ctx context.Context, req ConfigRequest) (string, error)
- func (c *Client) Configdb(ctx context.Context, req ConfigdbRequest) ([]ConfigdbResponse, error)
- func (c *Client) Crush(ctx context.Context, req CrushRequest) (string, error)
- func (c *Client) Index(ctx context.Context, req IndexRequest) ([]map[string]interface{}, error)
- func (c *Client) Init(ctx context.Context, req InitRequest) error
- func (c *Client) Log(ctx context.Context, req LogRequest) ([]LogResponse, error)
- func (c *Client) Restart(ctx context.Context, req RestartRequest) (string, error)
- func (c *Client) Rules(ctx context.Context, req RulesRequest) ([]map[string]interface{}, error)
- func (c *Client) Start(ctx context.Context, req StartRequest) (string, error)
- func (c *Client) Status(ctx context.Context, req StatusRequest) (map[string]interface{}, error)
- func (c *Client) Stop(ctx context.Context, req StopRequest) (string, error)
- type CmdSafetyRequest
- type CmdSafetyResponse
- type ConfigRequest
- type ConfigdbRequest
- type ConfigdbResponse
- type CrushRequest
- type HTTPClient
- type IndexRequest
- type InitRequest
- type LogRequest
- type LogResponse
- type RestartRequest
- type RulesRequest
- type Service
- type StartRequest
- type StatusRequest
- type StopRequest
Constants ¶
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) CmdSafety ¶
func (c *Client) CmdSafety(ctx context.Context, req CmdSafetyRequest) (CmdSafetyResponse, error)
CmdSafety Heuristical check if it is safe to perform an action.
func (*Client) Configdb ¶
func (c *Client) Configdb(ctx context.Context, req ConfigdbRequest) ([]ConfigdbResponse, error)
Configdb Get Ceph configuration database.
func (*Client) Init ¶
func (c *Client) Init(ctx context.Context, req InitRequest) error
Init Create initial ceph default configuration and setup symlinks.
func (*Client) Log ¶
func (c *Client) Log(ctx context.Context, req LogRequest) ([]LogResponse, error)
Log Read ceph log
type CmdSafetyRequest ¶
type CmdSafetyResponse ¶
type ConfigRequest ¶
type ConfigRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type ConfigdbRequest ¶
type ConfigdbRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type ConfigdbResponse ¶
type ConfigdbResponse struct { CanUpdateAtRuntime util.PVEBool `url:"can_update_at_runtime" json:"can_update_at_runtime"` Level string `url:"level" json:"level"` Mask string `url:"mask" json:"mask"` Name string `url:"name" json:"name"` Section string `url:"section" json:"section"` Value string `url:"value" json:"value"` }
type CrushRequest ¶
type CrushRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type HTTPClient ¶
type IndexRequest ¶
type IndexRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type InitRequest ¶
type InitRequest struct { Node string `url:"node" json:"node"` // The cluster node name. // The following parameters are optional ClusterNetwork *string `url:"cluster-network,omitempty" json:"cluster-network,omitempty"` // Declare a separate cluster network, OSDs will routeheartbeat, object replication and recovery traffic over it DisableCephx *util.PVEBool `url:"disable_cephx,omitempty" json:"disable_cephx,omitempty"` // Disable cephx authentication. WARNING: cephx is a security feature protecting against man-in-the-middle attacks. Only consider disabling cephx if your network is private! MinSize *int `url:"min_size,omitempty" json:"min_size,omitempty"` // Minimum number of available replicas per object to allow I/O Network *string `url:"network,omitempty" json:"network,omitempty"` // Use specific network for all ceph related traffic PgBits *int `url:"pg_bits,omitempty" json:"pg_bits,omitempty"` // Placement group bits, used to specify the default number of placement groups. NOTE: 'osd pool default pg num' does not work for default pools. Size *int `url:"size,omitempty" json:"size,omitempty"` // Targeted number of replicas per object }
type LogRequest ¶
type LogResponse ¶
type RestartRequest ¶
type RulesRequest ¶
type RulesRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type StartRequest ¶
type StatusRequest ¶
type StatusRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type StopRequest ¶
Click to show internal directories.
Click to hide internal directories.