docker_hub

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DockerImageToArray

func DockerImageToArray(images []DockerImage) []string

func ImageTagsToArray

func ImageTagsToArray(tags []DockerImageTag) []string

Types

type DockerImage

type DockerImage struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	StarCount   int    `json:"star_count"`
	IsTrusted   bool   `json:"is_trusted"`
	IsAutomated bool   `json:"is_automated"`
	IsOfficial  bool   `json:"is_official"`
}

func GetImage

func GetImage(image string) []DockerImage

type DockerImageTag

type DockerImageTag struct {
	Layer string `json:"layer"`
	Name  string `json:"name"`
}

func GetImageTags

func GetImageTags(image string) []DockerImageTag

type DockerSearchResponse

type DockerSearchResponse struct {
	NumPages   int           `json:"num_pages"`
	NumResults int           `json:"num_results"`
	PageSize   int           `json:"page_size"`
	Page       int           `json:"page"`
	Query      string        `json:"query"`
	Results    []DockerImage `json:"results"`
}

Jump to

Keyboard shortcuts

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