docker

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps the Docker API client with our custom methods

func NewClient

func NewClient() (*Client, error)

NewClient creates a new Docker client connection It connects to the Docker socket (usually /var/run/docker.sock)

func (*Client) Close

func (c *Client) Close() error

Close closes the Docker client connection

func (*Client) GetServerVersion

func (c *Client) GetServerVersion() (string, error)

GetServerVersion returns Docker server version info

func (*Client) ListContainers

func (c *Client) ListContainers() ([]models.Container, error)

ListContainers returns all running containers with their security info

func (*Client) ListNetworks

func (c *Client) ListNetworks() ([]models.NetworkInfo, error)

ListNetworks returns all Docker networks with their configuration

Jump to

Keyboard shortcuts

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