helpers

package
v0.0.0-...-35e54ea Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key string, defaultVal string) string

GetEnv OS lookup wrapper for string ENVs returns default value if given ENV not exists

func GetEnvBool

func GetEnvBool(key string, defaultVal bool) bool

GetEnvBool OS lookup wrapper for boolean ENVs returns default value if given ENV not exists

func IsFiltered

func IsFiltered(filters types.Filters, image dockerTypes.ImageSummary) []types.Tag

IsFiltered checks if given image is excluded fullname: my.repo.com/ki/base/system:latest image_name: my.repo.com/ki/base/system image_tag: latest

func PrintResult

func PrintResult(totalSpaceReduced int64, intervalSpaceReduced int64, count int)

PrintResult prints cleaner results info TODO Replace this method with metrics

Types

This section is empty.

Jump to

Keyboard shortcuts

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