image

package
v0.0.0-...-4381ce5 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Prefix = "Dockerfile."

Variables

This section is empty.

Functions

func BuildName

func BuildName(p string) string

first is given precedence 1. `docker/Dockerfile.app` -> app 2. `docker/app/Dockerfile` -> docker-app

Types

type Image

type Image struct {
	Name     string
	Tag      string
	Hash     string
	Registry string
}

func ImageSource

func ImageSource(r io.Reader) (Image, error)

func ParseImageStr

func ParseImageStr(image string) Image

<image> <image>[:<tag>] <image>[@<digest>] registry/etc/<image> registry/etc/<image>[:<tag>] registry/etc/<image>[@<digest>]

type ImagePair

type ImagePair struct {
	SourceImage Image
	Name        string
	Path        string
}

func NewImagePair

func NewImagePair(image_path string, image_reader io.Reader) ImagePair

Jump to

Keyboard shortcuts

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