runner

package
v0.0.0-...-0f1376a Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApplicationName

func GetApplicationName() string

func GetTuiAppLayout

func GetTuiAppLayout() *tview.Application

Construct & return the application instance.

func SearchDockerHub

func SearchDockerHub(
	imageDetails *ImageSearchDetails,
	searchResponseStringChannel chan string,
)

Perform search in Docker Hub using provided parameters & return result to caller.

Implementation Reference 1 : https://docs.docker.com/engine/api/sdk/

Implementation Reference 2 : https://docs.docker.com/engine/api/sdk/examples/

Command line reference for 'docker search' : https://docs.docker.com/engine/reference/commandline/search/

Types

type ImageSearchDetails

type ImageSearchDetails struct {
	ImageName                      string // Stores the name of image.
	MinimumStars                   int    // Stores the minimum number of stars to consider while searching.
	AutomatedOrManualBuildType     int    // Stores whether Default(0), Automated(1) or Manual(2) build type for search.
	OfficialOrCommunityBuildStatus int    // Stores whether Default(0), Official(1) or Community(2) build status for search.
	SearchLimit                    int    // Stores the limit of records to return while searching.
}

Structure that holds necessary details regarding image to search from Docker Hub.

Jump to

Keyboard shortcuts

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