container

package
v0.0.0-...-11103e6 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: AGPL-3.0 Imports: 17 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 {
	// contains filtered or unexported fields
}

func NewContainerService

func NewContainerService(logger *slog.Logger) (*ContainerService, error)

func (*ContainerService) ExecInContainer

func (s *ContainerService) ExecInContainer(ctx context.Context, id string, command string) (<-chan string, <-chan error)

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

func (s *ContainerService) StreamContainerLogs(ctx context.Context, id string, follow bool, numLines int) (<-chan string, <-chan error)

Jump to

Keyboard shortcuts

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