client

package
v1.1.3-dev Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoRequest

func DoRequest(url string) ([]byte, error)

DoRequest Http Post Request

Types

type Connection added in v1.1.1

type Connection interface {
	GetLvm(ctx context.Context, volGroup string, volumeID string) (string, error)
	CreateLvm(ctx context.Context, opt *LVMOptions) (string, error)
	DeleteLvm(ctx context.Context, volGroup string, volumeID string) error
	CleanPath(ctx context.Context, path string) error
	Close() error
	GetNameSpace(ctx context.Context, regionName string, volumeID string) (string, error)
	CreateNameSpace(ctx context.Context, opt *NameSpaceOptions) (*manager.PmemNameSpace, error)
	DeleteNameSpace(ctx context.Context, volumeID string) error
	CreateProjQuotaSubpath(ctx context.Context, pvName, size, rootPath string) (string, string, error)
	SetSubpathProjQuota(ctx context.Context, quotaSubpath, blockSoftlimit, blockHardlimit, inodeSoftlimit, inodeHardlimit string) (string, error)
	RemoveProjQuotaSubpath(ctx context.Context, quotaSubpath string) (string, error)
}

Connection lvm connection interface

func NewGrpcConnection added in v1.1.0

func NewGrpcConnection(address string, timeout time.Duration) (Connection, error)

NewGrpcConnection lvm connection

type LVMOptions

type LVMOptions struct {
	VolumeGroup string   `json:"volumeGroup,omitempty"`
	Name        string   `json:"name,omitempty"`
	Size        uint64   `json:"size,omitempty"`
	Tags        []string `json:"tags,omitempty"`
	Striping    bool     `json:"striping,omitempty"`
}

LVMOptions lvm options

type NameSpaceOptions added in v1.1.0

type NameSpaceOptions struct {
	Region string
	Name   string
	Size   uint64
}

NameSpaceOptions lvm options

Jump to

Keyboard shortcuts

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