Documentation ¶
Index ¶
- func NewService(db *bolt.DB, publisher events.Publisher) api.ContainersServer
- type Service
- func (s *Service) Create(ctx context.Context, req *api.CreateContainerRequest) (*api.CreateContainerResponse, error)
- func (s *Service) Delete(ctx context.Context, req *api.DeleteContainerRequest) (*empty.Empty, error)
- func (s *Service) Get(ctx context.Context, req *api.GetContainerRequest) (*api.GetContainerResponse, error)
- func (s *Service) List(ctx context.Context, req *api.ListContainersRequest) (*api.ListContainersResponse, error)
- func (s *Service) Register(server *grpc.Server) error
- func (s *Service) Update(ctx context.Context, req *api.UpdateContainerRequest) (*api.UpdateContainerResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, req *api.CreateContainerRequest) (*api.CreateContainerResponse, error)
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, req *api.GetContainerRequest) (*api.GetContainerResponse, error)
func (*Service) List ¶
func (s *Service) List(ctx context.Context, req *api.ListContainersRequest) (*api.ListContainersResponse, error)
func (*Service) Update ¶
func (s *Service) Update(ctx context.Context, req *api.UpdateContainerRequest) (*api.UpdateContainerResponse, error)
Click to show internal directories.
Click to hide internal directories.