image

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExisted

func IsExisted(username, password, image string) (bool, error)

IsExisted checks whether a public or private image exists

Types

type DockerHubImageTagResponse

type DockerHubImageTagResponse struct {
	Count   int `json:"count"`
	Results []Result
}

DockerHubImageTagResponse is the struct for docker hub image tag response

type Meta

type Meta struct {
	Registry   string
	Repository string
	Name       string
	Tag        string
}

Meta is the struct for image metadata

type RegistryMeta

type RegistryMeta struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

RegistryMeta is the struct for registry metadata

type Result

type Result struct {
	Name string `json:"name"`
}

Result is the struct for docker hub image tag result

Jump to

Keyboard shortcuts

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