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.
Click to show internal directories.
Click to hide internal directories.