rpc

package
v0.0.0-...-aef4f7c Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package rpc Date: 2022/11/9 10:18 Author: Amu Description:

Package rpc Date: 2024/06/25 00:15:52 Author: Amu Description:

Package rpc Date: 2022/11/9 10:18 Author: Amu Description:

Package rpc Date: 2022/11/9 10:18 Author: Amu Description:

Package rpc Date: 2024/6/24 09:30 Author: Amu Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	DB      *database.DB
	Manager *docker.Manager
	// contains filtered or unexported fields
}

func NewService

func NewService(db *database.DB, manager *docker.Manager) *Service

func (*Service) CPUInfo

func (s *Service) CPUInfo(ctx context.Context, args schema.CPUArgs, reply *model.CPU) error

func (*Service) CPUUsage

func (s *Service) CPUUsage(ctx context.Context, args schema.CPUUsageArgs, reply *[]model.CPU) error

func (*Service) ContainerCount

func (s *Service) ContainerCount(ctx context.Context, args schema.QueryCountArgs, reply *schema.QueryCountReply) error

func (*Service) ContainerCreate

func (s *Service) ContainerCreate(ctx context.Context, args schema.ContainerCreateArgs, reply *schema.ContainerCreateReply) error

func (*Service) ContainerDelete

func (s *Service) ContainerDelete(ctx context.Context, args schema.ContainerDeleteArgs, reply *schema.ContainerDeleteReply) error

func (*Service) ContainerList

func (s *Service) ContainerList(ctx context.Context, args schema.ContainerQueryArgs, reply *model.Containers) error

func (*Service) ContainerRestart

func (s *Service) ContainerRestart(ctx context.Context, args schema.ContainerRestartArgs, reply *schema.ContainerRestartReply) error

func (*Service) ContainerStart

func (s *Service) ContainerStart(ctx context.Context, args schema.ContainerStartArgs, reply *schema.ContainerStartReply) error

func (*Service) ContainerStop

func (s *Service) ContainerStop(ctx context.Context, args schema.ContainerStopArgs, reply *schema.ContainerStopReply) error

func (*Service) DirSize

func (s *Service) DirSize(ctx context.Context, args schema.DirSizeArgs, reply *schema.DirSizeReply) error

func (*Service) DiskInfo

func (s *Service) DiskInfo(ctx context.Context, args schema.DiskArgs, reply *[]model.Disk) error

func (*Service) DiskUsage

func (s *Service) DiskUsage(ctx context.Context, args schema.DiskUsageArgs, reply *[]model.Disk) error

func (*Service) DockerVersion

func (s *Service) DockerVersion(ctx context.Context, args schema.VersionArgs, reply *model.Docker) error

func (*Service) FileCreate

func (s *Service) FileCreate(ctx context.Context, args schema.FileCreateArgs, reply *schema.FileCreateReply) error

func (*Service) FileDelete

func (s *Service) FileDelete(ctx context.Context, args schema.FileDeleteArgs, reply *schema.FileDeleteReply) error

func (*Service) FileDownload

func (s *Service) FileDownload(ctx context.Context, args schema.FileDownloadArgs, reply *schema.FileDownloadReply) error

func (*Service) FileUpload

func (s *Service) FileUpload(ctx context.Context, args schema.FileUploadArgs, reply *schema.FileUploadReply) error

func (*Service) FilesSearch

func (s *Service) FilesSearch(ctx context.Context, args schema.FilesSearchArgs, reply *schema.FilesSearchReply) error

func (*Service) FolderCreate

func (s *Service) FolderCreate(ctx context.Context, args schema.FolderCreateArgs, reply *schema.FolderCreateReply) error

func (*Service) GetDNS

func (s *Service) GetDNS(ctx context.Context, args schema.GetDNSArgs, reply *schema.GetDNSReply) error

GetDNS 获取 DNS 配置

func (*Service) GetDockerRegistryMirrors

GetDockerRegistryMirrors 读取 Docker daemon.json 配置文件

func (*Service) GetSystemTime

func (s *Service) GetSystemTime(ctx context.Context, args schema.GetSystemTimeArgs, reply *schema.GetSystemTimeReply) error

GetSystemTime 获取系统时间

func (*Service) GetSystemTimeZone

func (s *Service) GetSystemTimeZone(ctx context.Context, args schema.GetSystemTimeZoneArgs, reply *schema.GetSystemTimeZoneReply) error

GetSystemTimeZone 获取系统时区

func (*Service) GetSystemTimeZoneList

func (s *Service) GetSystemTimeZoneList(ctx context.Context, args schema.GetSystemTimeZoneListArgs, reply *schema.GetSystemTimeZoneListReply) error

GetSystemTimeZoneList

func (*Service) HostInfo

func (s *Service) HostInfo(ctx context.Context, args schema.HostArgs, reply *model.Host) error

func (*Service) ImageCount

func (s *Service) ImageCount(ctx context.Context, args schema.ImageCountArgs, reply *schema.ImageCountReply) error

func (*Service) ImageDelete

func (s *Service) ImageDelete(ctx context.Context, args schema.ImageDeleteArgs, reply *schema.ImageDeleteReply) error

func (*Service) ImageExport

func (s *Service) ImageExport(ctx context.Context, args schema.ImageExportArgs, reply *schema.ImageExportReply) error

func (*Service) ImageImport

func (s *Service) ImageImport(ctx context.Context, args schema.ImageImportArgs, reply *schema.ImageImportReply) error

func (*Service) ImageList

func (s *Service) ImageList(ctx context.Context, args schema.ImageQueryArgs, reply *model.Images) error

func (*Service) ImagePull

func (s *Service) ImagePull(ctx context.Context, args schema.ImagePullArgs, reply *schema.ImagePullReply) error

func (*Service) ImageTag

func (s *Service) ImageTag(ctx context.Context, args schema.ImageTagArgs, reply *schema.ImageTagReply) error

func (*Service) ImagesPrune

func (s *Service) ImagesPrune(ctx context.Context) error

func (*Service) MemInfo

func (s *Service) MemInfo(ctx context.Context, args schema.MemoryArgs, reply *model.Memory) error

func (*Service) MemUsage

func (s *Service) MemUsage(ctx context.Context, args schema.MemoryUsageArgs, reply *[]model.Memory) error

func (*Service) NetUsage

func (s *Service) NetUsage(ctx context.Context, args schema.NetworkUsageArgs, reply *[]model.Net) error

func (*Service) NetworkCount

func (s *Service) NetworkCount(ctx context.Context, args schema.NetworkCountArgs, reply *schema.NetworkCountReply) error

func (*Service) NetworkCreate

func (s *Service) NetworkCreate(ctx context.Context, args schema.NetworkCreateArgs, reply *schema.NetworkCreateReply) error

func (*Service) NetworkDelete

func (s *Service) NetworkDelete(ctx context.Context, args schema.NetworkDeleteArgs, reply *schema.NetworkDeleteReply) error

func (*Service) NetworkList

func (s *Service) NetworkList(ctx context.Context, args schema.NetworkQueryArgs, reply *model.Networks) error

func (*Service) Reboot

func (s *Service) Reboot(ctx context.Context, args schema.RebootArgs, reply *schema.RebootReply) error

Reboot 重启

func (*Service) SetDNS

func (s *Service) SetDNS(ctx context.Context, args schema.SetDNSArgs, reply *schema.SetDNSReply) error

SetDNS 更新 DNS 配置

func (*Service) SetDockerRegistryMirrors

SetDockerRegistryMirrors 更新 Docker daemon.json 配置文件

func (*Service) SetSystemTime

func (s *Service) SetSystemTime(ctx context.Context, args schema.SetSystemTimeArgs, reply *schema.SetSystemTimeReply) error

SetSystemTime 设置系统时间

func (*Service) SetSystemTimeZone

func (s *Service) SetSystemTimeZone(ctx context.Context, args schema.SetSystemTimeZoneArgs, reply *schema.SetSystemTimeZoneReply) error

SetSystemTimeZone 设置系统时区

func (*Service) Shutdown

func (s *Service) Shutdown(ctx context.Context, args schema.ShutdownArgs, reply *schema.ShutdownReply) error

Shutdown 关机

Jump to

Keyboard shortcuts

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