cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteImages

func DeleteImages(ctx context.Context, imageTags []string, imageName string, namespace string)

DeleteImages deletes a list of image tags

func Execute

func Execute() error

Execute is the main entrypoint of the CLI, it executes child commands as given by the user-defined flags and arguments.

func ExecuteHistoryCleanupCommand

func ExecuteHistoryCleanupCommand(cmd *cobra.Command, args []string) error

ExecuteHistoryCleanupCommand executes the history cleanup command

func ExecuteOrphanCleanupCommand

func ExecuteOrphanCleanupCommand(_ *cobra.Command, args []string) error

ExecuteOrphanCleanupCommand executes the orphan cleanup command

func PrintImageTags

func PrintImageTags(imageTags []string, imageName string, namespace string)

PrintImageTags prints the given image tags line by line. In batch mode, only the tag name is printed, otherwise default log with info level

func SetVersion

func SetVersion(v string)

SetVersion sets the version string in the help messages

Types

This section is empty.

Jump to

Keyboard shortcuts

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