Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerContainerInfoEntry ¶
type DockerContainerInfoEntry struct {
ID string `json:"agent_container_id"`
Name string `json:"agent_container_name"`
State string `json:"agent_container_state"`
Uptime string `json:"agent_container_uptime"`
Networks []string `json:"agent_container_networks"`
IPs []string `json:"agent_container_ips"`
Ports common.Ports `json:"agent_container_ports"`
}
type DockerHelper ¶
type DockerHelper interface {
NetworkInfo() []DockerNetworkInfoEntry
ContainerInfo() []DockerContainerInfoEntry
NetworkCreate(name string, subnet string) error
}
type DockerNetworkInfoEntry ¶
type DockerNull ¶
type DockerNull struct {
}
func (*DockerNull) ContainerInfo ¶
func (dn *DockerNull) ContainerInfo() []DockerContainerInfoEntry
func (*DockerNull) Name ¶
func (dn *DockerNull) Name() string
func (*DockerNull) NetworkCreate ¶
func (dn *DockerNull) NetworkCreate(name string, subnet string) error
func (*DockerNull) NetworkInfo ¶
func (dn *DockerNull) NetworkInfo() []DockerNetworkInfoEntry
type DockerService ¶
type DockerService interface {
common.Service
DockerHelper
}
func New ¶
func New(w io.Writer) DockerService
Click to show internal directories.
Click to hide internal directories.