common

package
v0.0.0-...-a32337f Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentVersion = Version{
	Major: 1,
	Minor: 0,
	Patch: 0,
}
View Source
var DockerHub = Endpoint{
	URL: "https://registry.hub.docker.com/",
}

Functions

func BuildCurrentVersionString

func BuildCurrentVersionString(short bool) string

func BuildUrl

func BuildUrl(endpoint string) (*url.URL, error)

func CheckDockerHubLibrary

func CheckDockerHubLibrary(endpoint string, q *ImageName)

func GetUserAgent

func GetUserAgent() string

func IsDockerHub

func IsDockerHub(endpoint string) bool

func IsQuay

func IsQuay(endpoint string) bool

Types

type Endpoint

type Endpoint struct {
	// The base_client URL for requests
	URL string
}

type ImageName

type ImageName struct {
	Endpoint string
	Repo     string
	Name     string
}

func ParseName

func ParseName(name string) *ImageName

func (ImageName) GetImageName

func (i ImageName) GetImageName() string

type Version

type Version struct {
	Major int

	Minor int

	// Increment this for bug releases
	Patch int
}

func (Version) String

func (v Version) String() string

Directories

Path Synopsis
hub

Jump to

Keyboard shortcuts

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