imageinfo

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info v1.Config

Type alias of Config type from go-containerregistry, for creating our own method sets.

func ImageInfo

func ImageInfo(imageref string) (Info, error)

Returns the oci or docker image config from the imageref argument or an error.

func MGImageInfo

func MGImageInfo(mg *metagraf.MetaGraf) (Info, error)

Returns the oci or docker image config section based on images referenced in the metaGraf specification.

func (Info) ImageVolumeMounts

func (info Info) ImageVolumeMounts(nameprefix string) []corev1.VolumeMount

Turns the OCI or Docker image volume information into a slice of corev1.VolumeMount{}

func (Info) ImageVolumes

func (info Info) ImageVolumes(nameprefix string) []corev1.Volume

Turns the OCI or Docker image volume information into a slice of corev1.Volume{}

Jump to

Keyboard shortcuts

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