imagehelpers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCreatedAt

func GetCreatedAt(image v1.Image) (time.Time, error)

func GetEnv

func GetEnv(image v1.Image, key string) (string, error)

func GetLabel

func GetLabel(image v1.Image, key string, value interface{}) error

func GetStringLabel

func GetStringLabel(image v1.Image, key string) (string, error)

func GetWorkingDir

func GetWorkingDir(image v1.Image) (string, error)

func HasLabel

func HasLabel(image v1.Image, key string) (bool, error)

func SetEnv

func SetEnv(image v1.Image, key, value string) (v1.Image, error)

func SetLabels

func SetLabels(image v1.Image, labels map[string]interface{}) (v1.Image, error)

func SetStringLabel

func SetStringLabel(image v1.Image, key, value string) (v1.Image, error)

func SetStringLabels

func SetStringLabels(image v1.Image, labels map[string]string) (v1.Image, error)

func SetWorkingDir

func SetWorkingDir(image v1.Image, dir string) (v1.Image, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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