actions

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CLITypes is the list of types that can be specified for actions on the CLI.
	CLITypes = []string{
		build.CLIType,
		buildagent.CLIType,
		entity.CLIType,
		entity.CLITypeProject,
		collection.CLIType,
		container.CLIType,
		container.CLITypeRepo,
		image.CLIType,
		key.CLIType,
		token.CLIType,
		user.CLIType,
	}
	// CLITypesPlural is the list of pluralized types that can be specified for actions on the CLI.
	CLITypesPlural = []string{
		build.CLITypePlural,
		buildagent.CLITypePlural,
		entity.CLITypePlural,
		entity.CLITypeProjectPlural,
		collection.CLITypePlural,
		container.CLITypePlural,
		container.CLITypeRepoPlural,
		image.CLITypePlural,
		key.CLITypePlural,
		token.CLITypePlural,
		user.CLITypePlural,
	}
	// CLITypesShort is the list of short form types that can be specified for actions on the CLI.
	CLITypesShort = []string{
		build.CLITypeShort,
		buildagent.CLITypeShort,
		entity.CLITypeShort,
		entity.CLITypeProjectShort,
		collection.CLITypeShort,
		container.CLITypeShort,
		container.CLITypeRepoShort,
		image.CLITypeShort,
		key.CLITypeShort,
		token.CLITypeShort,
		user.CLITypeShort,
	}
)

Functions

This section is empty.

Types

type Runner

type Runner interface {
	Get(cmd *cobra.Command, args []string) error
	Describe(cmd *cobra.Command, args []string) error
	Delete(cmd *cobra.Command, args []string) error
}

Runner can perform the basic CLI actions for a specific type.

func NewRunner

func NewRunner(cliType string, clients *api.Clients, userID string, authInfo runtime.ClientAuthInfoWriter) (ar Runner, err error)

NewRunner returns an implementation of the ActionRunner interface on the specified cliType.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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