docker

package
v0.0.0-...-6018c67 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindContainer

func FindContainer(contextName string) (string, error)

Types

type DockerPsOutput

type DockerPsOutput struct {
	Command      string `json:"Command"`
	CreatedAt    string `json:"CreatedAt"`
	ID           string `json:"ID"`
	Image        string `json:"Image"`
	Labels       string `json:"Labels"`
	LocalVolumes string `json:"LocalVolumes"`
	Mounts       string `json:"Mounts"`
	Names        string `json:"Names"`
	Networks     string `json:"Networks"`
	Ports        string `json:"Ports"`
	RunningFor   string `json:"RunningFor"`
	Size         string `json:"Size"`
	State        string `json:"State"`
	Status       string `json:"Status"`
}

type ImageList

type ImageList struct {
	Images []struct {
		ID          string        `json:"id"`
		RepoTags    []string      `json:"repoTags"`
		RepoDigests []interface{} `json:"repoDigests"`
		Size        string        `json:"size"`
		UID         interface{}   `json:"uid"`
		Username    string        `json:"username"`
		Spec        interface{}   `json:"spec"`
		Pinned      bool          `json:"pinned"`
	} `json:"images"`
}

func ListImages

func ListImages(containerId string) ImageList

Jump to

Keyboard shortcuts

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