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 ¶
- type Service
- func (s *Service) CPUInfo(ctx context.Context, args schema.CPUArgs, reply *model.CPU) error
- func (s *Service) CPUUsage(ctx context.Context, args schema.CPUUsageArgs, reply *[]model.CPU) error
- func (s *Service) ContainerCount(ctx context.Context, args schema.QueryCountArgs, reply *schema.QueryCountReply) error
- func (s *Service) ContainerCreate(ctx context.Context, args schema.ContainerCreateArgs, ...) error
- func (s *Service) ContainerDelete(ctx context.Context, args schema.ContainerDeleteArgs, ...) error
- func (s *Service) ContainerList(ctx context.Context, args schema.ContainerQueryArgs, reply *model.Containers) error
- func (s *Service) ContainerRestart(ctx context.Context, args schema.ContainerRestartArgs, ...) error
- func (s *Service) ContainerStart(ctx context.Context, args schema.ContainerStartArgs, ...) error
- func (s *Service) ContainerStop(ctx context.Context, args schema.ContainerStopArgs, ...) error
- func (s *Service) DirSize(ctx context.Context, args schema.DirSizeArgs, reply *schema.DirSizeReply) error
- func (s *Service) DiskInfo(ctx context.Context, args schema.DiskArgs, reply *[]model.Disk) error
- func (s *Service) DiskUsage(ctx context.Context, args schema.DiskUsageArgs, reply *[]model.Disk) error
- func (s *Service) DockerVersion(ctx context.Context, args schema.VersionArgs, reply *model.Docker) error
- func (s *Service) FileCreate(ctx context.Context, args schema.FileCreateArgs, reply *schema.FileCreateReply) error
- func (s *Service) FileDelete(ctx context.Context, args schema.FileDeleteArgs, reply *schema.FileDeleteReply) error
- func (s *Service) FileDownload(ctx context.Context, args schema.FileDownloadArgs, ...) error
- func (s *Service) FileUpload(ctx context.Context, args schema.FileUploadArgs, reply *schema.FileUploadReply) error
- func (s *Service) FilesSearch(ctx context.Context, args schema.FilesSearchArgs, ...) error
- func (s *Service) FolderCreate(ctx context.Context, args schema.FolderCreateArgs, ...) error
- func (s *Service) GetDNS(ctx context.Context, args schema.GetDNSArgs, reply *schema.GetDNSReply) error
- func (s *Service) GetDockerRegistryMirrors(ctx context.Context, args schema.GetDockerRegistryMirrorsArgs, ...) error
- func (s *Service) GetSystemTime(ctx context.Context, args schema.GetSystemTimeArgs, ...) error
- func (s *Service) GetSystemTimeZone(ctx context.Context, args schema.GetSystemTimeZoneArgs, ...) error
- func (s *Service) GetSystemTimeZoneList(ctx context.Context, args schema.GetSystemTimeZoneListArgs, ...) error
- func (s *Service) HostInfo(ctx context.Context, args schema.HostArgs, reply *model.Host) error
- func (s *Service) ImageCount(ctx context.Context, args schema.ImageCountArgs, reply *schema.ImageCountReply) error
- func (s *Service) ImageDelete(ctx context.Context, args schema.ImageDeleteArgs, ...) error
- func (s *Service) ImageExport(ctx context.Context, args schema.ImageExportArgs, ...) error
- func (s *Service) ImageImport(ctx context.Context, args schema.ImageImportArgs, ...) error
- func (s *Service) ImageList(ctx context.Context, args schema.ImageQueryArgs, reply *model.Images) error
- func (s *Service) ImagePull(ctx context.Context, args schema.ImagePullArgs, reply *schema.ImagePullReply) error
- func (s *Service) ImageTag(ctx context.Context, args schema.ImageTagArgs, reply *schema.ImageTagReply) error
- func (s *Service) ImagesPrune(ctx context.Context) error
- func (s *Service) MemInfo(ctx context.Context, args schema.MemoryArgs, reply *model.Memory) error
- func (s *Service) MemUsage(ctx context.Context, args schema.MemoryUsageArgs, reply *[]model.Memory) error
- func (s *Service) NetUsage(ctx context.Context, args schema.NetworkUsageArgs, reply *[]model.Net) error
- func (s *Service) NetworkCount(ctx context.Context, args schema.NetworkCountArgs, ...) error
- func (s *Service) NetworkCreate(ctx context.Context, args schema.NetworkCreateArgs, ...) error
- func (s *Service) NetworkDelete(ctx context.Context, args schema.NetworkDeleteArgs, ...) error
- func (s *Service) NetworkList(ctx context.Context, args schema.NetworkQueryArgs, reply *model.Networks) error
- func (s *Service) Reboot(ctx context.Context, args schema.RebootArgs, reply *schema.RebootReply) error
- func (s *Service) SetDNS(ctx context.Context, args schema.SetDNSArgs, reply *schema.SetDNSReply) error
- func (s *Service) SetDockerRegistryMirrors(ctx context.Context, args schema.SetDockerRegistryMirrorsArgs, ...) error
- func (s *Service) SetSystemTime(ctx context.Context, args schema.SetSystemTimeArgs, ...) error
- func (s *Service) SetSystemTimeZone(ctx context.Context, args schema.SetSystemTimeZoneArgs, ...) error
- func (s *Service) Shutdown(ctx context.Context, args schema.ShutdownArgs, reply *schema.ShutdownReply) error
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 (*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) DockerVersion ¶
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 ¶
func (s *Service) GetDockerRegistryMirrors(ctx context.Context, args schema.GetDockerRegistryMirrorsArgs, reply *schema.GetDockerRegistryMirrorsReply) error
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) 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) 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) 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 (*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 ¶
func (s *Service) SetDockerRegistryMirrors(ctx context.Context, args schema.SetDockerRegistryMirrorsArgs, reply *schema.SetDockerRegistryMirrorsReply) error
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 关机
Click to show internal directories.
Click to hide internal directories.