Documentation ¶
Index ¶
- Constants
- type Container
- type DockerRuntime
- func (p *DockerRuntime) ContainerWithPort(ctx context.Context, name, port string) (bool, error)
- func (p *DockerRuntime) GetContainerByName(ctx context.Context, name string) (*types.Container, error)
- func (p *DockerRuntime) IsUsingPort(container *types.Container, port uint16) bool
- func (p *DockerRuntime) Name() string
- type FinchRuntime
- type IRuntime
- type NetworkSettings
- type PortBinding
- type State
Constants ¶
View Source
const (
Running = "running"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { NetworkSettings NetworkSettings `json:"NetworkSettings"` State State `json:"State"` }
type DockerRuntime ¶
type DockerRuntime struct {
// contains filtered or unexported fields
}
func (*DockerRuntime) ContainerWithPort ¶
func (*DockerRuntime) GetContainerByName ¶
func (*DockerRuntime) IsUsingPort ¶
func (p *DockerRuntime) IsUsingPort(container *types.Container, port uint16) bool
func (*DockerRuntime) Name ¶
func (p *DockerRuntime) Name() string
type FinchRuntime ¶
type FinchRuntime struct {
// contains filtered or unexported fields
}
func (*FinchRuntime) ContainerWithPort ¶
func (*FinchRuntime) Name ¶
func (p *FinchRuntime) Name() string
type IRuntime ¶
type IRuntime interface { // get runtime name Name() string // checks whether the container has the following ContainerWithPort(ctx context.Context, name, port string) (bool, error) }
func DetectRuntime ¶
func NewDockerRuntime ¶
func NewFinchRuntime ¶
type NetworkSettings ¶
type NetworkSettings struct {
Ports map[string][]PortBinding `json:"Ports"`
}
type PortBinding ¶
Click to show internal directories.
Click to hide internal directories.