Documentation ¶
Index ¶
- type ContainerService
- func (c *ContainerService) Create(ctx context.Context, req *pb.CreateContainerReq) (*pb.CreateContainerResp, error)
- func (c *ContainerService) Delete(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
- func (c *ContainerService) ForceDelete(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
- func (c *ContainerService) List(ctx context.Context, req *pb.ListContainerReq) (*pb.ListContainerResp, error)
- func (c *ContainerService) Log(ctx context.Context, req *pb.LogContainerReq) (*pb.ContainerLog, error)
- func (c *ContainerService) Restart(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
- func (c *ContainerService) Start(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
- func (c *ContainerService) Stats(ctx context.Context, id *pb.ContainerId) (*pb.HealthInfo, error)
- func (c *ContainerService) Stop(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
- func (c *ContainerService) UpdateQuota(ctx context.Context, resource *pb.Resource) (*pb.Notify, error)
- type DaemonService
- type ImageService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerService ¶
type ContainerService struct { Container *daemon.ContainerHandler pb.UnimplementedContainerServiceServer }
func NewContainerService ¶
func NewContainerService(container *daemon.ContainerHandler) *ContainerService
func (*ContainerService) Create ¶
func (c *ContainerService) Create(ctx context.Context, req *pb.CreateContainerReq) (*pb.CreateContainerResp, error)
func (*ContainerService) Delete ¶
func (c *ContainerService) Delete(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
func (*ContainerService) ForceDelete ¶
func (c *ContainerService) ForceDelete(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
func (*ContainerService) List ¶
func (c *ContainerService) List(ctx context.Context, req *pb.ListContainerReq) (*pb.ListContainerResp, error)
func (*ContainerService) Log ¶
func (c *ContainerService) Log(ctx context.Context, req *pb.LogContainerReq) (*pb.ContainerLog, error)
func (*ContainerService) Restart ¶
func (c *ContainerService) Restart(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
func (*ContainerService) Start ¶
func (c *ContainerService) Start(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
func (*ContainerService) Stats ¶
func (c *ContainerService) Stats(ctx context.Context, id *pb.ContainerId) (*pb.HealthInfo, error)
func (*ContainerService) Stop ¶
func (c *ContainerService) Stop(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)
func (*ContainerService) UpdateQuota ¶
type DaemonService ¶
type DaemonService struct { pb.UnimplementedDaemonServiceServer Daemon *daemon.DaemonHandler }
func NewDaemonService ¶
func NewDaemonService(daemon *daemon.DaemonHandler) *DaemonService
func (DaemonService) HealthCheck ¶
func (d DaemonService) HealthCheck(ctx context.Context, empty *emptypb.Empty) (*pb.HealthInfo, error)
func (DaemonService) HostInfo ¶
func (d DaemonService) HostInfo(ctx context.Context, empty *emptypb.Empty) (*pb.SystemInfo, error)
HostInfo returns basic information about local machine
type ImageService ¶
type ImageService struct { pb.UnimplementedImageServiceServer Image *daemon.ImageHandler }
func NewImageService ¶
func NewImageService(image *daemon.ImageHandler) *ImageService
func (ImageService) List ¶
func (i ImageService) List(ctx context.Context, req *pb.ListImagesReq) (*pb.ListImageResult, error)
Click to show internal directories.
Click to hide internal directories.