docker

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamedVolumesForService

func GetNamedVolumesForService(service *config.Service) []string

Types

type Api

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

func New

func New() *Api

func (*Api) CheckNetwork

func (d *Api) CheckNetwork() bool

func (*Api) Connect

func (d *Api) Connect(name string, customPassword string, web bool) error

func (*Api) Create

func (d *Api) Create(name string) error

func (*Api) CreateNetwork

func (d *Api) CreateNetwork() error

func (*Api) Exists

func (d *Api) Exists(name string) bool

func (*Api) GetInfo

func (d *Api) GetInfo(name string) ServiceInfo

func (*Api) ListAvailable

func (d *Api) ListAvailable() []ServiceInfo

func (*Api) ListCreated

func (d *Api) ListCreated() []ServiceInfo

func (*Api) ListRunning

func (d *Api) ListRunning() []ServiceInfo

func (*Api) ListStopped

func (d *Api) ListStopped() []ServiceInfo

func (*Api) Remove

func (d *Api) Remove(name string) error

func (*Api) RemoveVolumes

func (d *Api) RemoveVolumes(names []string)

func (*Api) Start

func (d *Api) Start(name string) error

func (*Api) Stop

func (d *Api) Stop(name string) error

type ServiceInfo

type ServiceInfo struct {
	Name          string
	ContainerName string
	ID            string
	Image         string
	Version       string
	Ports         []string
	Status        string
}

Jump to

Keyboard shortcuts

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