docker

package
v4.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: MIT Imports: 10 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 {
	API *client.Client
	// contains filtered or unexported fields
}

Client represents an active docker object

func New

func New(opts Options) (*Client, error)

New initializes a new Docker API client with default values

func (*Client) ContainerList

func (c *Client) ContainerList(filterArgs filters.Args) ([]types.Container, error)

ContainerList returns Docker containers

func (*Client) IsDanglingImage

func (c *Client) IsDanglingImage(image types.ImageInspect) bool

IsDanglingImage returns whether the given image is "dangling" which means that there are no repository references to the given image and it has no child images

func (*Client) IsLocalImage

func (c *Client) IsLocalImage(image types.ImageInspect) bool

IsLocalImage checks if the image has been built locally

func (*Client) RawImage

func (c *Client) RawImage(image string) (types.ImageInspect, error)

RawImage returns the image information and its raw representation

func (*Client) ServiceList

func (c *Client) ServiceList(filterArgs filters.Args) ([]swarm.Service, error)

ServiceList returns Swarm services

type Options

type Options struct {
	Endpoint    string
	APIVersion  string
	TLSCertPath string
	TLSVerify   bool
}

Options holds docker client object options

Jump to

Keyboard shortcuts

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