Help us shape the future of Go! Take the 2026 Go Developer Survey

containers

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContainer

func CreateContainer(options CreateContainerOptions) (string, error)

func GetContainerEnvironmentVariables

func GetContainerEnvironmentVariables(id string, prefix *string) (map[string]string, error)

func GetContainerPortMapping

func GetContainerPortMapping(id string, port string, protocol string) (string, error)

Types

type Container

type Container struct {
	ID   string
	Name string
}

func ListContainers

func ListContainers(filters ListContainersFilters) ([]Container, error)

type CreateContainerOptions

type CreateContainerOptions struct {
	Image           string
	Env             map[string]string
	TcpPortBindings map[int]int
}

type ListContainersFilters

type ListContainersFilters struct {
	// container runs one of these images (excluding tags)
	Images []string
}

type PortMapping

type PortMapping struct {
	HostPort string
	HostIP   string
}

Jump to

Keyboard shortcuts

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