Help us shape the future of Go! Take the 2026 Go Developer Survey

docker

package
v0.0.0-...-8ea77d2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Root = UIDGID{UID: 0, GID: 0}

Root is a root:root user.

Functions

This section is empty.

Types

type Image

type Image interface {
	Digest(context.Context) (string, error)
	Ensure(context.Context) error
	UIDGID(context.Context) (UIDGID, error)
}

Image represents a Docker image, hopefully stored in the local cache.

type ImageCache

type ImageCache struct {
	// contains filtered or unexported fields
}

ImageCache is a cache of metadata about Docker images, indexed by name.

func NewImageCache

func NewImageCache() *ImageCache

NewImageCache creates a new image cache.

func (*ImageCache) Get

func (ic *ImageCache) Get(name string) Image

Get returns the image cache entry for the given Docker image. The name may be anything the Docker command line will accept as an image name: this will generally be IMAGE or IMAGE:TAG.

type UIDGID

type UIDGID struct {
	UID int
	GID int
}

UIDGID represents a UID:GID pair.

func (UIDGID) String

func (ug UIDGID) String() string

Jump to

Keyboard shortcuts

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