fs

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
	AddStorage *bool   `url:"add-storage,omitempty",json:"add-storage,omitempty"` // Configure the created CephFS as storage for this cluster.
	Name       *string `url:"name,omitempty",json:"name,omitempty"`               // The ceph filesystem name.
	PgNum      *int    `url:"pg_num,omitempty",json:"pg_num,omitempty"`           // Number of placement groups for the backing data pool. The metadata pool will use a quarter of this.
}

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 a Ceph filesystem

func (*Client) Index

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

Index Directory index.

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 {
	DataPool     string `url:"data_pool",json:"data_pool"`         // The name of the data pool.
	MetadataPool string `url:"metadata_pool",json:"metadata_pool"` // The name of the metadata pool.
	Name         string `url:"name",json:"name"`                   // The ceph filesystem name.

}

Jump to

Keyboard shortcuts

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