server

package
v3.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentServer

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

AgentServer act as an agent to interactive with services in agent machine

func NewAgent

func NewAgent(metaConfig *clients.MetaConfig) (*AgentServer, error)

func (*AgentServer) AllowReadWrite

TODO(spw): should call graphd's corresponding interface

func (*AgentServer) BanReadWrite

TODO(spw): should call graphd's corresponding interface

func (*AgentServer) DataPlayBack

func (*AgentServer) GetSpaceUsages added in v3.6.1

func (*AgentServer) HealthCheck

func (*AgentServer) ServiceStatus

ServiceStatus return the status(exit or running) of metad/storaged/graphd/all service in agent machine

func (*AgentServer) StartService

StartService start metad/storaged/graphd/all service in agent machine

func (*AgentServer) StopAgent

func (*AgentServer) StopService

StartService stop metad/storaged/graphd/all service in agent machine

type StorageServer

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

StorageServer provide service:

  1. upload/download dir/files between the agent machine and external storage
  2. handle dir/files in agent machine

func NewStorage

func NewStorage() *StorageServer

func (*StorageServer) DownloadFile

DownloadFile download the file or directory recursively from external storage to agent machine

func (*StorageServer) ExistDir

ExistDir check if file/dir in agent machine

func (*StorageServer) IncrUploadFile

IncrUploadFile upload the Incremental file or directory recursively from agent machine to external storage

func (*StorageServer) MoveDir

MoveDir rename file/dir in agent machine

func (*StorageServer) RemoveDir

RemoveDir delete file/dir in agent machine

func (*StorageServer) UploadFile

UploadFile upload the file or directory recursively from agent machine to external storage

Jump to

Keyboard shortcuts

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