service

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service struct

func New

func New(c *conf.Config) (s *Service)

New init

func (*Service) AddFreeVolume

func (s *Service) AddFreeVolume(c context.Context, arg *model.ArgAddFreeVolume) (err error)

AddFreeVolume add free volume.

func (*Service) AddVolume

func (s *Service) AddVolume(c context.Context, arg *model.ArgAddVolume) (err error)

AddVolume add volume.

func (*Service) Close

func (s *Service) Close()

Close .

func (*Service) Clusters

func (s *Service) Clusters(c context.Context) (clusters []string)

Clusters .

func (*Service) Compact

func (s *Service) Compact(c context.Context, arg *model.ArgCompact) (err error)

Compact compact store.

func (*Service) Groups

func (s *Service) Groups(c context.Context, arg *model.ArgCluster) (resp *model.RespGroup, err error)

Groups .

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping .

func (*Service) Racks

func (s *Service) Racks(c context.Context, arg *model.ArgCluster) (resp *model.RespRack, err error)

Racks .

func (*Service) SetGroupStatus

func (s *Service) SetGroupStatus(c context.Context, arg *model.ArgGroupStatus) (err error)

SetGroupStatus set group status(read,write,sync,health).

func (*Service) Total

func (s *Service) Total(c context.Context, arg *model.ArgCluster) (resp *model.RespTotal, err error)

Total .

func (*Service) Volumes

func (s *Service) Volumes(c context.Context, arg *model.ArgCluster) (resp *model.RespVolume, err error)

Volumes .

Jump to

Keyboard shortcuts

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