docker

package
v0.0.0-...-9856b1a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteMySQLDatabase

func DeleteMySQLDatabase(user, password, prefix, name, container string) (bool, error)

DeleteMySQLDatabase will try to delete a database based on prefix and domain, the domain will be converted to a md5 hash.

func GetContainers

func GetContainers(domain string) ([]types.Container, error)

GetContainers returns all containers for a domain suffix or a error.

func GetHost

func GetHost() string

GetHost returns Docker host.

func GetVersion

func GetVersion() string

GetVersion returns Docker version.

func RemoveContainers

func RemoveContainers(domain string) (int, error)

RemoveContainers will remove containers with the domain suffix and return a count of containers removed or a error.

func RestartContainers

func RestartContainers(domain string) (int, error)

RestartContainers will restart all containers that match the given domain.

Types

This section is empty.

Jump to

Keyboard shortcuts

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