moby

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// ContainerCreated created status
	ContainerCreated = "created"
	// ContainerRestarting restarting status
	ContainerRestarting = "restarting"
	// ContainerRunning running status
	ContainerRunning = "running"
	// ContainerRemoving removing status
	ContainerRemoving = "removing" //nolint
	// ContainerPaused paused status
	ContainerPaused = "paused" //nolint
	// ContainerExited exited status
	ContainerExited = "exited" //nolint
	// ContainerDead dead status
	ContainerDead = "dead" //nolint
)

Variables

This section is empty.

Functions

func FromPorts

func FromPorts(ports []containers.Port) (map[nat.Port]struct{}, map[nat.Port][]nat.PortBinding, error)

FromPorts convert to nat.Port / nat.PortBinding

func ToHostConfig

func ToHostConfig(m *types.ContainerJSON) *containers.HostConfig

ToHostConfig convert into containers.HostConfig

func ToMobyEnv

func ToMobyEnv(environment compose.MappingWithEquals) []string

ToMobyEnv convert into []string

func ToMobyHealthCheck

func ToMobyHealthCheck(check *compose.HealthCheckConfig) *container.HealthConfig

ToMobyHealthCheck convert into container.HealthConfig

func ToPorts

func ToPorts(ports []types.Port) []containers.Port

ToPorts convert into containers.Port

func ToRestartPolicy

func ToRestartPolicy(p string) container.RestartPolicy

ToRestartPolicy convert to container.RestartPolicy

func ToRuntimeConfig

func ToRuntimeConfig(m *types.ContainerJSON) *containers.RuntimeConfig

ToRuntimeConfig convert into containers.RuntimeConfig

func ToSeconds

func ToSeconds(d *compose.Duration) *int

ToSeconds convert into seconds

Types

type ContainerStdin

type ContainerStdin struct {
	moby.HijackedResponse
}

ContainerStdin implement WriteCloser for moby.HijackedResponse

func (ContainerStdin) Close

func (c ContainerStdin) Close() error

Close implement io.WriteCloser

func (ContainerStdin) Write

func (c ContainerStdin) Write(p []byte) (n int, err error)

Write implement io.WriteCloser

type ContainerStdout

type ContainerStdout struct {
	moby.HijackedResponse
}

ContainerStdout implement ReadCloser for moby.HijackedResponse

func (ContainerStdout) Close

func (l ContainerStdout) Close() error

Close implement io.ReadCloser

func (ContainerStdout) Read

func (l ContainerStdout) Read(p []byte) (n int, err error)

Read implement io.ReadCloser

Jump to

Keyboard shortcuts

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