daemon

package
v0.0.0-...-1d5bf40 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 (*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 (*ContainerService) Log

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 (*ContainerService) Stop

func (c *ContainerService) Stop(ctx context.Context, id *pb.ContainerId) (*pb.Notify, error)

func (*ContainerService) UpdateQuota

func (c *ContainerService) UpdateQuota(ctx context.Context, resource *pb.Resource) (*pb.Notify, error)

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 (ImageService) Remove

func (i ImageService) Remove(ctx context.Context, id *pb.ImageId) (*pb.Notify, error)

Jump to

Keyboard shortcuts

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