service

package
v2.5.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const ADMIN permissionMode = permissionMode(1)
View Source
const USER permissionMode = permissionMode(2)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileService

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

func NewFileService

func NewFileService(objectNode string, masters []string, mc *client.MasterGClient) *FileService

func (*FileService) DownFile

func (fs *FileService) DownFile(writer http.ResponseWriter, request *http.Request) error

?vol_name=abc&path=/aaa/bbb/ddd.txt

func (*FileService) Schema

func (fs *FileService) Schema() *graphql.Schema

func (*FileService) UpLoadFile

func (fs *FileService) UpLoadFile(writer http.ResponseWriter, request *http.Request) error

?vol_name=abc&path=/aaa/bbb/ddd.txt {file}

type FuseClient

type FuseClient struct {
	Name     string `json:"__name__"`
	App      string `json:"app"`
	Cluster  string `json:"cluster"`
	Hostip   string `json:"hostip"`
	Instance string `json:"instance"`
	Job      string `json:"job"`
	Monitor  string `json:"monitor"`
	Role     string `json:"role"`
	Service  string `json:"service"`
}

type FuseRecord

type FuseRecord struct {
	Metric FuseClient `json:"metric"`
	Value  float64    `json:"value"`
}

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

type ListFileInfo

type ListFileInfo struct {
	Infos       []*FSFileInfo
	NextMarker  string
	IsTruncated bool
	Prefixes    []string
}

type LoginService

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

func NewLoginService

func NewLoginService(client *client.MasterGClient) *LoginService

func (*LoginService) Schema

func (ls *LoginService) Schema() *graphql.Schema

type MonitorService

type MonitorService struct {
	Address       string
	App           string
	Cluster       string
	DashboardAddr string
}

func NewMonitorService

func NewMonitorService(addr, app, cluster, dashboardAddr string) *MonitorService

func (*MonitorService) Dashboard

func (fs *MonitorService) Dashboard(ctx context.Context, args struct{}) string

func (*MonitorService) FuseClientList

func (ms *MonitorService) FuseClientList(ctx context.Context, args struct{}) ([]*FuseRecord, error)

func (*MonitorService) Query

func (ms *MonitorService) Query(ctx context.Context, args struct {
	Query string
}) (string, error)

func (*MonitorService) RangeQuery

func (ms *MonitorService) RangeQuery(ctx context.Context, args struct {
	Query string
	Start uint32
	End   uint32
	Step  uint32
}) (string, error)

func (*MonitorService) RangeQueryURL

func (ms *MonitorService) RangeQueryURL(ctx context.Context, args struct {
	Query string
	Start uint32
	End   uint32
	Step  uint32
}) (string, error)

func (*MonitorService) Schema

func (ms *MonitorService) Schema() *graphql.Schema

type UserToken

type UserToken struct {
	UserID   string `json:"userID"`
	Token    string `json:"token"`
	Status   bool   `json:"status"`
	UserInfo *user.UserInfo
}

Jump to

Keyboard shortcuts

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