Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Client
 - func (c *Client) Create(ctx context.Context, req CreateRequest) (string, error)
 - func (c *Client) Delete(ctx context.Context, req DeleteRequest) (string, error)
 - func (c *Client) In(ctx context.Context, req InRequest) error
 - func (c *Client) Index(ctx context.Context, req IndexRequest) (map[string]interface{}, error)
 - func (c *Client) Out(ctx context.Context, req OutRequest) error
 - func (c *Client) Scrub(ctx context.Context, req ScrubRequest) error
 
- type CreateRequest
 - type DeleteRequest
 - type HTTPClient
 - type InRequest
 - type IndexRequest
 - type OutRequest
 - type ScrubRequest
 
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
type CreateRequest ¶
type CreateRequest struct {
	Dev  string `url:"dev" json:"dev"`   // Block device name.
	Node string `url:"node" json:"node"` // The cluster node name.
	// The following parameters are optional
	CrushDeviceClass *string       `url:"crush-device-class,omitempty" json:"crush-device-class,omitempty"` // Set the device class of the OSD in crush.
	DbDev            *string       `url:"db_dev,omitempty" json:"db_dev,omitempty"`                         // Block device name for block.db.
	DbDevSize        *float64      `url:"db_dev_size,omitempty" json:"db_dev_size,omitempty"`               // Size in GiB for block.db.
	Encrypted        *util.PVEBool `url:"encrypted,omitempty" json:"encrypted,omitempty"`                   // Enables encryption of the OSD.
	WalDev           *string       `url:"wal_dev,omitempty" json:"wal_dev,omitempty"`                       // Block device name for block.wal.
	WalDevSize       *float64      `url:"wal_dev_size,omitempty" json:"wal_dev_size,omitempty"`             // Size in GiB for block.wal.
}
    type DeleteRequest ¶
type HTTPClient ¶
type IndexRequest ¶
type IndexRequest struct {
	Node string `url:"node" json:"node"` // The cluster node name.
}
    type OutRequest ¶
type ScrubRequest ¶
type ScrubRequest struct {
	Node  string `url:"node" json:"node"`   // The cluster node name.
	Osdid int    `url:"osdid" json:"osdid"` // OSD ID
	// The following parameters are optional
	Deep *util.PVEBool `url:"deep,omitempty" json:"deep,omitempty"` // If set, instructs a deep scrub instead of a normal one.
}
     Click to show internal directories. 
   Click to hide internal directories.