apputil

package
v0.0.0-...-796e579 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSameImage = errors.New("same image")

ErrSameImage is returned when there is no image change.

Functions

func DropIfDifferent

func DropIfDifferent(d *dock.Client, name, img string) error

DropIfDifferent drops the container with name if the image is different. It returns ErrSameImage if the image is the same.

func DropIfExists

func DropIfExists(cont *dock.Cont) error

DropIfExists drops the container if the container exists. Otherwise, it prints a log line and do nothing.

func ReadPasswordOrSetRandom

func ReadPasswordOrSetRandom(
	s settings.Settings, k string,
) (string, error)

ReadPasswordOrSetRandom reads a string password or set a random one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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