metastore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New(path string) *Store

New metadata storage.

func (*Store) CreateVol

func (o *Store) CreateVol(ctx context.Context, v Volume) error

CreateVol within the moosefs cluster.

func (*Store) DeleteVol

func (o *Store) DeleteVol(ctx context.Context, name string) error

DeleteVol within the moosefs cluster.

func (*Store) ReadVol

func (o *Store) ReadVol(ctx context.Context, name string) (*Volume, error)

ReadVol within the moosefs cluster.

func (*Store) UpdateVol

func (o *Store) UpdateVol(ctx context.Context, v Volume) error

UpdateVol within the moosefs cluster.

type Volume

type Volume struct {
	Name     string `json:"name"`
	Capacity int64  `json:"capacity"`
	// Dynamic provisioned volume.
	Dynamic bool   `json:"dynamic"`
	Node    string `json:"node"`
	// Path of the directory on the controller.
	Path string `json:"path"`
	// Path of the directory within the moosefs cluster.
	MFSPath string `json:"mfs_path"`
}

Jump to

Keyboard shortcuts

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