docker

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Lockfile = "pinny-lock.json"

Variables

This section is empty.

Functions

func GeneratePinnedDockerfile

func GeneratePinnedDockerfile(filename string, offline bool) error

func GeneratePinnyLockFile

func GeneratePinnyLockFile(filename string) error

func GetDigest

func GetDigest(imageString string) (*string, error)

func GetManifest

func GetManifest(imageName string) ([]byte, error)

Types

type DockerImageRef

type DockerImageRef struct {
	Raw    string `json:"raw"`
	Host   string `json:"host"`
	Repo   string `json:"repo"`
	Name   string `json:"name"`
	Tag    string `json:"tag"`
	Digest string `json:"digest"`
}

func GetImageRefWithDigest

func GetImageRefWithDigest(imageString string) (*DockerImageRef, error)

func (*DockerImageRef) OriginalName

func (d *DockerImageRef) OriginalName(suffix string) string

type FromCmd

type FromCmd struct {
	Flags []string        `json:"flags"`
	Image *DockerImageRef `json:"image"`
	Alias string          `json:"alias"`
}

Jump to

Keyboard shortcuts

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