imagehelpers

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 13 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 NewLazyMountableLayer

func NewLazyMountableLayer(args LazyMountableLayerArgs) (v1.Layer, 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

type LazyMountableLayerArgs

type LazyMountableLayerArgs struct {
	Digest, DiffId, Image string
	Size                  int64
	Keychain              authn.Keychain
}

Jump to

Keyboard shortcuts

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