dockerhub

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package dockerhub includes DockerHub API wrappers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchRepo

func MatchRepo(repos []string, tag string) (string, error)

MatchRepo returns repo which has the given tag

Types

type Tag

type Tag struct {
	Layer string
	Name  string
}

Tag struct represents single JSON object received from DockerHub API after querying it for list of tags for particular repository.

func GetTags

func GetTags(repo string) ([]Tag, error)

GetTags function queries DockerHub API for a list of all available tags of a given repository.

Jump to

Keyboard shortcuts

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