docker

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainerLogs

func GetContainerLogs(ctx context.Context, client *client.Client, container string) ([]byte, error)

func GetOrPullImage

func GetOrPullImage(ctx context.Context, client *client.Client, url *ImageURL) error

func PullImage

func PullImage(ctx context.Context, client *client.Client, url *ImageURL) error

func RemoveContainer

func RemoveContainer(ctx context.Context, client *client.Client, id string) error

func SearchLocalImages

func SearchLocalImages(ctx context.Context, client *client.Client, query string) (string, error)

func StreamContainerLogs

func StreamContainerLogs(ctx context.Context, client *client.Client, containerID string) (io.ReadCloser, error)

Types

type ImageURL

type ImageURL struct {
	Registry string
	Name     string
	Tag      string
}

func ParseImageURL

func ParseImageURL(url string) (*ImageURL, error)

func (*ImageURL) String

func (u *ImageURL) String() string

Jump to

Keyboard shortcuts

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