Documentation ¶
Index ¶
- Constants
- func FromPorts(ports []containers.Port) (map[nat.Port]struct{}, map[nat.Port][]nat.PortBinding, error)
- func ToHostConfig(m *types.ContainerJSON) *containers.HostConfig
- func ToMobyEnv(environment compose.MappingWithEquals) []string
- func ToMobyHealthCheck(check *compose.HealthCheckConfig) *container.HealthConfig
- func ToPorts(ports []types.Port) []containers.Port
- func ToRestartPolicy(p string) container.RestartPolicy
- func ToRuntimeConfig(m *types.ContainerJSON) *containers.RuntimeConfig
- func ToSeconds(d *compose.Duration) *int
- type ContainerStdin
- type ContainerStdout
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
Types ¶
type ContainerStdin ¶
type ContainerStdin struct {
moby.HijackedResponse
}
ContainerStdin implement WriteCloser for moby.HijackedResponse
type ContainerStdout ¶
type ContainerStdout struct {
moby.HijackedResponse
}
ContainerStdout implement ReadCloser for moby.HijackedResponse
Click to show internal directories.
Click to hide internal directories.