Documentation ¶
Index ¶
- Constants
- type FileService
- type FuseClient
- type FuseRecord
- type KeyValue
- type ListFileInfo
- type LoginService
- type MonitorService
- func (fs *MonitorService) Dashboard(ctx context.Context, args struct{}) string
- func (ms *MonitorService) FuseClientList(ctx context.Context, args struct{}) ([]*FuseRecord, error)
- func (ms *MonitorService) Query(ctx context.Context, args struct{ ... }) (string, error)
- func (ms *MonitorService) RangeQuery(ctx context.Context, args struct{ ... }) (string, error)
- func (ms *MonitorService) RangeQueryURL(ctx context.Context, args struct{ ... }) (string, error)
- func (ms *MonitorService) Schema() *graphql.Schema
- type UserToken
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 FuseRecord ¶
type FuseRecord struct { Metric FuseClient `json:"metric"` Value float64 `json:"value"` }
type ListFileInfo ¶
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 ¶
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) RangeQuery ¶
func (*MonitorService) RangeQueryURL ¶
func (*MonitorService) Schema ¶
func (ms *MonitorService) Schema() *graphql.Schema
Click to show internal directories.
Click to hide internal directories.