container

package
v0.1.41 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package container provides application services for containers.

Index

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

func (s *Service) GetContainer(ctx context.Context, id string) (*v1.Container, error)

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.

Jump to

Keyboard shortcuts

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