dockerhub

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 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 GetTags

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

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

https://stackoverflow.com/questions/48856693/dockerhub-api-listing-tags curl -s GET 'https://hub.docker.com/v2/repositories/library/debian/tags?page_size=1000' | jq -r '.results|.[]|.name

func MatchRepo

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

MatchRepo returns repo which has the given tag

Types

This section is empty.

Jump to

Keyboard shortcuts

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