container

package
v0.0.0-...-474187c Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ID      string
	Name    string
	Domains []string
	Addr    string
	Running bool
}

Container contains information about a running container. This includes both information from Docker (its ID, etc.) and information from labels (domains, address, etc.).

func New

func New(json types.ContainerJSON, running bool) *Container

New reads information from a container's labels and populates a Container instance with the data. If the container does not contain the requires labels, nil is returned.

Jump to

Keyboard shortcuts

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