imageutil

package
v0.0.0-...-2cf57f6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrImageInvalidArgs = xerrors.New(`invalid format of image, use one of the following options:
- <image>=<newimage>:<newtag>
- <image>=<newimage>@<newtag>
- <image>=<newimage>
- <image>:<newtag>
- <image>@<digest>`)
)

Functions

func GetImageDescriptor

func GetImageDescriptor(path string) (*remote.Descriptor, error)

GetImageDescriptor retrieves image descriptor

func GetImageHash

func GetImageHash(path string) (string, error)

GetImageHash retrieves image hash from remote registry

Types

type Overwrite

type Overwrite struct {
	Name   string
	Digest string
	Tag    string
}

func ParseOverwrite

func ParseOverwrite(arg string, overwriteImage bool) (*Overwrite, error)

ParseOverwrite parses the overwrite parameters from the given arg into a struct

Jump to

Keyboard shortcuts

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