docker

package
v0.0.0-...-58a0043 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(dcli *client.Client, dockerFileContents []byte, labels map[string]string, tags []string) error

func EditTagSuffixWrapper

func EditTagSuffixWrapper(cmd *cobra.Command, args []string, appendOrRemove bool) error

func GetImageAndTag

func GetImageAndTag(repoTag string) (string, string, error)

func MakeRegex

func MakeRegex(regex string) (*regexp.Regexp, error)

func MoveTag

func MoveTag(dcli *client.Client, tagOp TagOp) error

func PrintStream

func PrintStream(ctx context.Context, stream io.ReadCloser) error

Types

type ImageMap

type ImageMap map[string]types.ImageSummary

func FindImages

func FindImages(dcli *client.Client, r *regexp.Regexp) (ImageMap, error)

func (ImageMap) ShowPretty

func (images ImageMap) ShowPretty()

func (ImageMap) SortedNames

func (images ImageMap) SortedNames() []string

type TagOp

type TagOp struct {
	From string
	To   string
}

type TextStream

type TextStream struct {
	Stream string `json:"stream"`
}

Jump to

Keyboard shortcuts

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