Documentation
¶
Overview ¶
Package container provides application services for containers.
Index ¶
- type Service
- func (s *Service) GetContainer(ctx context.Context, id string) (*v1.Container, error)
- func (s *Service) ListAgentsByContainer(ctx context.Context, id string, options *model.ListOptions) (*v1.ListResponse[v1.Agent], error)
- func (s *Service) ListContainers(ctx context.Context, options *model.ListOptions) (*v1.ListResponse[v1.Container], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements the ContainerManageUsecase interface.
func New ¶
func New( containerUsecase agentport.ContainerUsecase, agentUsecase agentport.AgentUsecase, logger *slog.Logger, ) *Service
New creates a new container application Service.
func (*Service) GetContainer ¶
GetContainer implements applicationport.ContainerManageUsecase.
func (*Service) ListAgentsByContainer ¶
func (s *Service) ListAgentsByContainer( ctx context.Context, id string, options *model.ListOptions, ) (*v1.ListResponse[v1.Agent], error)
ListAgentsByContainer implements applicationport.ContainerManageUsecase.
func (*Service) ListContainers ¶
func (s *Service) ListContainers( ctx context.Context, options *model.ListOptions, ) (*v1.ListResponse[v1.Container], error)
ListContainers implements applicationport.ContainerManageUsecase.
Click to show internal directories.
Click to hide internal directories.