docker

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSupabaseStatus

func GetSupabaseStatus() (map[string]int, error)

GetSupabaseStatus returns a map of Supabase service names to their ports

func IsDockerAvailable

func IsDockerAvailable() bool

IsDockerAvailable checks if Docker is installed and running

Types

type DockerService

type DockerService struct {
	ContainerID string
	Name        string
	Ports       []PortMapping
}

DockerService represents a running Docker container with its port mappings

func GetRunningContainers

func GetRunningContainers() ([]DockerService, error)

GetRunningContainers returns a list of running Docker containers with their port mappings

func ParseDockerPS

func ParseDockerPS(output string) ([]DockerService, error)

ParseDockerPS parses the output of docker ps command and extracts container information

type PortMapping

type PortMapping struct {
	HostPort      int
	ContainerPort int
	Protocol      string
}

PortMapping represents a port mapping between host and container

Jump to

Keyboard shortcuts

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