docker

package
v0.0.0-...-af76a63 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindName

func FindName(container types.Container) string

FindName returns the name set by the name label, if no name label exists instead returns the docker ID

func FindVendor

func FindVendor(cli *client.Client, container types.Container) (string, error)

FindVendor returns the DB vendor of a given container Returns error if no supported vendor could be identified

func GetEnabledContainers

func GetEnabledContainers(cli *client.Client) ([]types.Container, error)

GetEnabledContainers returns all containers which have the enabled label

func GetEnv

func GetEnv(cli *client.Client, container types.Container) []string

GetEnv returns the environment variables of a docker container

func RunCommand

func RunCommand(cli *client.Client, container types.Container, command []string, fileName string) (int, error)

RunCommand runs a command and writes the output to a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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