docker

package
v0.6.3-beta01 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 14 Imported by: 0

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 DockerNetworkInfoEntry struct {
	ID      string   `json:"agent_network_id"`
	Name    string   `json:"agent_network_name"`
	Subnets []string `json:"agent_network_subnets"`
}

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

func (*DockerNull) Run

func (dn *DockerNull) Run(ctx context.Context) error

type DockerService

type DockerService interface {
	common.Service
	DockerHelper
}

func New

func New(w io.Writer) DockerService

Jump to

Keyboard shortcuts

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