images

package
v0.4.16-0rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NullPolicy = corev1.PullPolicy("")
	NullImage  = ""
)

Variables

This section is empty.

Functions

func GetCurrentImage

func GetCurrentImage(ctx context.Context) (string, corev1.PullPolicy, error)

func GetImageFromPod

func GetImageFromPod(ctx context.Context, namespace, podName, containerName string) (string, corev1.PullPolicy, error)

func Name

func Name() string

Name returns the image name as a string

func Repo

func Repo() string

Repo returns the image repo as a string

func SpecPath

func SpecPath() string

SpecPath() returns the image full image spec path as a string

func Tag

func Tag() string

Tag returns the image tag as a string

Types

type Data

type Data struct {
	User    string // dynamic, learned from the user
	Self    string // dynamic, learned from the cluster
	Builtin string // static, determined at built time
}

func Discover

func Discover(ctx context.Context, userImageSpec string) (Data, corev1.PullPolicy)

func (Data) Discovered

func (da Data) Discovered() string

Discovered returns the image Spec learned from the environment (dynamic)

func (Data) Preferred

func (da Data) Preferred() string

Preferred returns the image spec to use, preferring the dynamic

Jump to

Keyboard shortcuts

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