ishmael

package module
v0.0.0-...-6aeb89d Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 6 Imported by: 1

README

Ishmael

A library for getting docker information in JSON.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*client.Client
}

A Client handles connections to the docker API

var DefaultClient *Client

DefaultClient is the client that gets used for package-level functions

func NewClient

func NewClient() (*Client, error)

NewClient gets a new client using the environment (DOCKER_HOST, etc). If you need a fancier client, you can build it by hand.

func (*Client) Containers

func (c *Client) Containers() ([]*Container, error)

Containers gets a detailed list of Containers

func (*Client) Images

func (c *Client) Images() ([]*Image, error)

func (*Client) Networks

func (c *Client) Networks() ([]*Network, error)

func (*Client) Swarm

func (c *Client) Swarm() (*Swarm, error)

func (*Client) Volumes

func (c *Client) Volumes() ([]*Volume, []string, error)

Volumes gets a detailed list of Volumes

type Container

type Container struct {
	types.ContainerJSON
}

func Containers

func Containers() ([]*Container, error)

Containers gets a list of Containers using the default client

type Image

type Image struct {
	types.ImageInspect
}

func Images

func Images() ([]*Image, error)

type Network

type Network struct {
	types.NetworkResource
}

func Networks

func Networks() ([]*Network, error)

type Swarm

type Swarm struct {
	swarm.Swarm
}

func GetSwarm

func GetSwarm() (*Swarm, error)

type Volume

type Volume struct {
	*types.Volume
}

func Volumes

func Volumes() ([]*Volume, []string, error)

Volumes gets a list of Volumes using the default client

Directories

Path Synopsis
cmd
ishmael Module

Jump to

Keyboard shortcuts

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