list

package
v0.82.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "list <registry url>",
	Short:   "List Images",
	Args:    cobra.ExactArgs(1),
	Aliases: []string{"ls"},
	Run: func(c *cobra.Command, args []string) {
		registry := args[0]
		url := "https://" + registry
		username := ""
		password := ""
		registry_client.Quiet("")
		log.SetOutput(io.Discard)
		r, _ := registry_client.New(url, username, password)
		r.Logf = registry_client.Quiet
		repositories, _ := r.Repositories()
		for _, image := range repositories {
			fmt.Println(registry + "/" + image)
		}
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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