Documentation
¶
Index ¶
- type ContainerService
- func (s *ContainerService) ExecInContainer(ctx context.Context, id string, command string) (<-chan string, <-chan error)
- func (s *ContainerService) GetContainerDetails(ctx context.Context, id string) (types.ContainerDetails, error)
- func (s *ContainerService) ListContainers(ctx context.Context) (types.ContainerList, error)
- func (s *ContainerService) RestartContainer(ctx context.Context, id string) error
- func (s *ContainerService) StartContainer(ctx context.Context, id string) error
- func (s *ContainerService) StopContainer(ctx context.Context, id string) error
- func (s *ContainerService) StreamContainerLogs(ctx context.Context, id string, follow bool, numLines int) (<-chan string, <-chan error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerService ¶
type ContainerService struct {
// contains filtered or unexported fields
}
func NewContainerService ¶
func NewContainerService(logger *slog.Logger) (*ContainerService, error)
func (*ContainerService) ExecInContainer ¶
func (*ContainerService) GetContainerDetails ¶
func (s *ContainerService) GetContainerDetails(ctx context.Context, id string) (types.ContainerDetails, error)
func (*ContainerService) ListContainers ¶
func (s *ContainerService) ListContainers(ctx context.Context) (types.ContainerList, error)
func (*ContainerService) RestartContainer ¶
func (s *ContainerService) RestartContainer(ctx context.Context, id string) error
func (*ContainerService) StartContainer ¶
func (s *ContainerService) StartContainer(ctx context.Context, id string) error
func (*ContainerService) StopContainer ¶
func (s *ContainerService) StopContainer(ctx context.Context, id string) error
func (*ContainerService) StreamContainerLogs ¶
Click to show internal directories.
Click to hide internal directories.