commands

package
v1.8.9 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 112 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultSSOLocalPort is the localhost port to listen on for the temporary web server performing
	// the OAuth2 login flow.
	DefaultSSOLocalPort = 8085
)

Variables

This section is empty.

Functions

func NewAccountCanICommand

func NewAccountCanICommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewAccountCommand

func NewAccountCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewAccountDeleteTokenCommand

func NewAccountDeleteTokenCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewAccountGenerateTokenCommand

func NewAccountGenerateTokenCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewAccountGetCommand

func NewAccountGetCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewAccountGetUserInfoCommand

func NewAccountGetUserInfoCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewAccountListCommand

func NewAccountListCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewAccountSessionTokenCommand

func NewAccountSessionTokenCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewAccountUpdatePasswordCommand

func NewAccountUpdatePasswordCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewAppSetCommand

func NewAppSetCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewAppSetCommand returns a new instance of an `cd appset` command

func NewApplicationAddSourceCommand

func NewApplicationAddSourceCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationAddSourceCommand returns a new instance of an `cd app add-source` command

func NewApplicationCommand

func NewApplicationCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationCommand returns a new instance of an `cd app` command

func NewApplicationConfirmDeletionCommand

func NewApplicationConfirmDeletionCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewApplicationCreateCommand

func NewApplicationCreateCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationCreateCommand returns a new instance of an `cd app create` command

func NewApplicationDeleteCommand

func NewApplicationDeleteCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationDeleteCommand returns a new instance of an `cd app delete` command

func NewApplicationDeleteResourceCommand

func NewApplicationDeleteResourceCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewApplicationDiffCommand

func NewApplicationDiffCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationDiffCommand returns a new instance of an `cd app diff` command

func NewApplicationEditCommand

func NewApplicationEditCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewApplicationGetCommand

func NewApplicationGetCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationGetCommand returns a new instance of an `cd app get` command

func NewApplicationGetResourceCommand

func NewApplicationGetResourceCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationGetResourceCommand returns a new instance of the `app get-resource` command

func NewApplicationHistoryCommand

func NewApplicationHistoryCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationHistoryCommand returns a new instance of an `cd app history` command

func NewApplicationListCommand

func NewApplicationListCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationListCommand returns a new instance of an `cd app list` command

func NewApplicationListResourcesCommand

func NewApplicationListResourcesCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewApplicationLogsCommand

func NewApplicationLogsCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationLogsCommand returns logs of application pods

func NewApplicationManifestsCommand

func NewApplicationManifestsCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationManifestsCommand returns a new instance of an `cd app manifests` command

func NewApplicationPatchCommand

func NewApplicationPatchCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewApplicationPatchResourceCommand

func NewApplicationPatchResourceCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewApplicationRemoveSourceCommand

func NewApplicationRemoveSourceCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationRemoveSourceCommand returns a new instance of an `cd app remove-source` command

func NewApplicationResourceActionsCommand

func NewApplicationResourceActionsCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationResourceActionsCommand returns a new instance of an `cd app actions` command

func NewApplicationResourceActionsListCommand

func NewApplicationResourceActionsListCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationResourceActionsListCommand returns a new instance of an `cd app actions list` command

func NewApplicationResourceActionsRunCommand

func NewApplicationResourceActionsRunCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationResourceActionsRunCommand returns a new instance of an `cd app actions run` command

func NewApplicationRollbackCommand

func NewApplicationRollbackCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationRollbackCommand returns a new instance of an `cd app rollback` command

func NewApplicationSetCommand

func NewApplicationSetCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationSetCommand returns a new instance of an `cd app set` command

func NewApplicationSetCreateCommand

func NewApplicationSetCreateCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationSetCreateCommand returns a new instance of an `cd appset create` command

func NewApplicationSetDeleteCommand

func NewApplicationSetDeleteCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationSetDeleteCommand returns a new instance of an `cd appset delete` command

func NewApplicationSetGenerateCommand

func NewApplicationSetGenerateCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationSetGenerateCommand returns a new instance of an `cd appset generate` command

func NewApplicationSetGetCommand

func NewApplicationSetGetCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationSetGetCommand returns a new instance of an `cd appset get` command

func NewApplicationSetListCommand

func NewApplicationSetListCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationSetListCommand returns a new instance of an `cd appset list` command

func NewApplicationSyncCommand

func NewApplicationSyncCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationSyncCommand returns a new instance of an `cd app sync` command

func NewApplicationTerminateOpCommand

func NewApplicationTerminateOpCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationTerminateOpCommand returns a new instance of an `cd app terminate-op` command

func NewApplicationUnsetCommand

func NewApplicationUnsetCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationUnsetCommand returns a new instance of an `cd app unset` command

func NewApplicationWaitCommand

func NewApplicationWaitCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewApplicationWaitCommand returns a new instance of an `cd app wait` command

func NewBcryptCmd

func NewBcryptCmd() *cobra.Command

NewBcryptCmd represents the bcrypt command

func NewCertAddSSHCommand

func NewCertAddSSHCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewCertAddSSHCommand returns a new instance of an `cd cert add` command

func NewCertAddTLSCommand

func NewCertAddTLSCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewCertCommand

func NewCertCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewCertCommand returns a new instance of an `cd repo` command

func NewCertListCommand

func NewCertListCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewCertListCommand returns a new instance of an `cd cert rm` command

func NewCertRemoveCommand

func NewCertRemoveCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewCertRemoveCommand returns a new instance of an `cd cert rm` command

func NewClusterAddCommand

func NewClusterAddCommand(clientOpts *cdclient.ClientOptions, pathOpts *clientcmd.PathOptions) *cobra.Command

NewClusterAddCommand returns a new instance of an `cd cluster add` command

func NewClusterCommand

func NewClusterCommand(clientOpts *cdclient.ClientOptions, pathOpts *clientcmd.PathOptions) *cobra.Command

NewClusterCommand returns a new instance of an `cd cluster` command

func NewClusterGetCommand

func NewClusterGetCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewClusterGetCommand returns a new instance of an `cd cluster get` command

func NewClusterListCommand

func NewClusterListCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewClusterListCommand returns a new instance of an `cd cluster rm` command

func NewClusterRemoveCommand

func NewClusterRemoveCommand(clientOpts *cdclient.ClientOptions, pathOpts *clientcmd.PathOptions) *cobra.Command

NewClusterRemoveCommand returns a new instance of an `cd cluster rm` command

func NewClusterRotateAuthCommand

func NewClusterRotateAuthCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewClusterRotateAuthCommand returns a new instance of an `cd cluster rotate-auth` command

func NewClusterSetCommand

func NewClusterSetCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewClusterSetCommand returns a new instance of an `cd cluster set` command

func NewCommand

func NewCommand() *cobra.Command

NewCommand returns a new instance of an cd command

func NewCompletionCommand

func NewCompletionCommand() *cobra.Command

func NewConfigureCommand

func NewConfigureCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewConfigureCommand returns a new instance of an `cd configure` command

func NewContextCommand

func NewContextCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewContextCommand returns a new instance of an `cd ctx` command

func NewGPGAddCommand

func NewGPGAddCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewGPGAddCommand adds a public key to the server's configuration

func NewGPGCommand

func NewGPGCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewGPGCommand returns a new instance of an `cd repo` command

func NewGPGDeleteCommand

func NewGPGDeleteCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewGPGDeleteCommand removes a key from the server's keyring

func NewGPGGetCommand

func NewGPGGetCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewGPGGetCommand retrieves a single public key from the server

func NewGPGListCommand

func NewGPGListCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewGPGListCommand lists all configured public keys from the server

func NewLoginCommand

func NewLoginCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewLoginCommand returns a new instance of `cd login` command

func NewLogoutCommand

func NewLogoutCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewLogoutCommand returns a new instance of `cd logout` command

func NewProjectAddDestinationCommand

func NewProjectAddDestinationCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectAddDestinationCommand returns a new instance of an `cd proj add-destination` command

func NewProjectAddDestinationServiceAccountCommand

func NewProjectAddDestinationServiceAccountCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectAddDestinationServiceAccountCommand returns a new instance of an `cd proj add-destination-service-account` command

func NewProjectAddOrphanedIgnoreCommand

func NewProjectAddOrphanedIgnoreCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectAddOrphanedIgnoreCommand returns a new instance of an `cd proj add-orphaned-ignore` command

func NewProjectAddSignatureKeyCommand

func NewProjectAddSignatureKeyCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectAddSignatureKeyCommand returns a new instance of an `cd proj add-signature-key` command

func NewProjectAddSourceCommand

func NewProjectAddSourceCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectAddSourceCommand returns a new instance of an `cd proj add-src` command

func NewProjectAddSourceNamespace

func NewProjectAddSourceNamespace(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectAddSourceNamespace returns a new instance of an `cd proj add-source-namespace` command

func NewProjectAllowClusterResourceCommand

func NewProjectAllowClusterResourceCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectAllowClusterResourceCommand returns a new instance of an `cd proj allow-cluster-resource` command

func NewProjectAllowNamespaceResourceCommand

func NewProjectAllowNamespaceResourceCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectAllowNamespaceResourceCommand returns a new instance of an `allow-namespace-resource` command

func NewProjectCommand

func NewProjectCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectCommand returns a new instance of an `cd proj` command

func NewProjectCreateCommand

func NewProjectCreateCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectCreateCommand returns a new instance of an `cd proj create` command

func NewProjectDeleteCommand

func NewProjectDeleteCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectDeleteCommand returns a new instance of an `cd proj delete` command

func NewProjectDenyClusterResourceCommand

func NewProjectDenyClusterResourceCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectDenyClusterResourceCommand returns a new instance of an `deny-cluster-resource` command

func NewProjectDenyNamespaceResourceCommand

func NewProjectDenyNamespaceResourceCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectDenyNamespaceResourceCommand returns a new instance of an `cd proj deny-namespace-resource` command

func NewProjectEditCommand

func NewProjectEditCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewProjectGetCommand

func NewProjectGetCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectGetCommand returns a new instance of an `cd proj get` command

func NewProjectListCommand

func NewProjectListCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectListCommand returns a new instance of an `cd proj list` command

func NewProjectRemoveDestinationCommand

func NewProjectRemoveDestinationCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRemoveDestinationCommand returns a new instance of an `cd proj remove-destination` command

func NewProjectRemoveDestinationServiceAccountCommand

func NewProjectRemoveDestinationServiceAccountCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRemoveDestinationCommand returns a new instance of an `cd proj remove-destination-service-account` command

func NewProjectRemoveOrphanedIgnoreCommand

func NewProjectRemoveOrphanedIgnoreCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRemoveOrphanedIgnoreCommand returns a new instance of an `cd proj remove-orphaned-ignore` command

func NewProjectRemoveSignatureKeyCommand

func NewProjectRemoveSignatureKeyCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRemoveSignatureKeyCommand returns a new instance of an `cd proj remove-signature-key` command

func NewProjectRemoveSourceCommand

func NewProjectRemoveSourceCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRemoveSourceCommand returns a new instance of an `cd proj remove-src` command

func NewProjectRemoveSourceNamespace

func NewProjectRemoveSourceNamespace(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRemoveSourceNamespace returns a new instance of an `cd proj remove-source-namespace` command

func NewProjectRoleAddGroupCommand

func NewProjectRoleAddGroupCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRoleAddGroupCommand returns a new instance of an `cd proj role add-group` command

func NewProjectRoleAddPolicyCommand

func NewProjectRoleAddPolicyCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRoleAddPolicyCommand returns a new instance of an `cd proj role add-policy` command

func NewProjectRoleCommand

func NewProjectRoleCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRoleCommand returns a new instance of the `cd proj role` command

func NewProjectRoleCreateCommand

func NewProjectRoleCreateCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRoleCreateCommand returns a new instance of an `cd proj role create` command

func NewProjectRoleCreateTokenCommand

func NewProjectRoleCreateTokenCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRoleCreateTokenCommand returns a new instance of an `cd proj role create-token` command

func NewProjectRoleDeleteCommand

func NewProjectRoleDeleteCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRoleDeleteCommand returns a new instance of an `cd proj role delete` command

func NewProjectRoleDeleteTokenCommand

func NewProjectRoleDeleteTokenCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRoleDeleteTokenCommand returns a new instance of an `cd proj role delete-token` command

func NewProjectRoleGetCommand

func NewProjectRoleGetCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRoleGetCommand returns a new instance of an `cd proj roles get` command

func NewProjectRoleListCommand

func NewProjectRoleListCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRoleListCommand returns a new instance of an `cd proj roles list` command

func NewProjectRoleListTokensCommand

func NewProjectRoleListTokensCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

func NewProjectRoleRemoveGroupCommand

func NewProjectRoleRemoveGroupCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRoleRemoveGroupCommand returns a new instance of an `cd proj role remove-group` command

func NewProjectRoleRemovePolicyCommand

func NewProjectRoleRemovePolicyCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectRoleRemovePolicyCommand returns a new instance of an `cd proj role remove-policy` command

func NewProjectSetCommand

func NewProjectSetCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectSetCommand returns a new instance of an `cd proj set` command

func NewProjectSourceIntegrityCommand

func NewProjectSourceIntegrityCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectSourceIntegrityCommand returns a new instance of an `cd proj source-integrity` command

func NewProjectSourceIntegrityGitCommand

func NewProjectSourceIntegrityGitCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectSourceIntegrityGitCommand returns a new instance of an `cd proj source-integrity git` command

func NewProjectSourceIntegrityGitPoliciesAddCommand

func NewProjectSourceIntegrityGitPoliciesAddCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectSourceIntegrityGitPoliciesAddCommand returns a new instance of an `cd proj source-integrity git policies add` command

func NewProjectSourceIntegrityGitPoliciesCommand

func NewProjectSourceIntegrityGitPoliciesCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectSourceIntegrityGitPoliciesCommand returns a new instance of an `cd proj source-integrity git policies` command

func NewProjectSourceIntegrityGitPoliciesDeleteCommand

func NewProjectSourceIntegrityGitPoliciesDeleteCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectSourceIntegrityGitPoliciesDeleteCommand returns a new instance of an `cd proj source-integrity git policies delete` command

func NewProjectSourceIntegrityGitPoliciesListCommand

func NewProjectSourceIntegrityGitPoliciesListCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectSourceIntegrityGitPoliciesListCommand returns a new instance of an `cd proj source-integrity git policies list` command

func NewProjectSourceIntegrityGitPoliciesUpdateCommand

func NewProjectSourceIntegrityGitPoliciesUpdateCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectSourceIntegrityGitPoliciesUpdateCommand returns a new instance of an `cd proj source-integrity git policies update` command

func NewProjectWindowsAddWindowCommand

func NewProjectWindowsAddWindowCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectWindowsAddWindowCommand returns a new instance of an `cd proj windows add` command

func NewProjectWindowsCommand

func NewProjectWindowsCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectWindowsCommand returns a new instance of the `cd proj windows` command

func NewProjectWindowsDeleteCommand

func NewProjectWindowsDeleteCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectWindowsDeleteCommand returns a new instance of an `cd proj windows delete` command

func NewProjectWindowsDisableManualSyncCommand

func NewProjectWindowsDisableManualSyncCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectWindowsDisableManualSyncCommand returns a new instance of an `cd proj windows disable-manual-sync` command

func NewProjectWindowsDisableSyncOverrunCommand

func NewProjectWindowsDisableSyncOverrunCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectWindowsDisableSyncOverrunCommand returns a new instance of an `cd proj windows disable-sync-overrun` command

func NewProjectWindowsEnableManualSyncCommand

func NewProjectWindowsEnableManualSyncCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectWindowsEnableManualSyncCommand returns a new instance of an `cd proj windows enable-manual-sync` command

func NewProjectWindowsEnableSyncOverrunCommand

func NewProjectWindowsEnableSyncOverrunCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectWindowsEnableSyncOverrunCommand returns a new instance of an `cd proj windows enable-sync-overrun` command

func NewProjectWindowsListCommand

func NewProjectWindowsListCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectWindowsListCommand returns a new instance of an `cd proj windows list` command

func NewProjectWindowsUpdateCommand

func NewProjectWindowsUpdateCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewProjectWindowsUpdateCommand returns a new instance of an `cd proj windows update` command

func NewReloginCommand

func NewReloginCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewReloginCommand returns a new instance of `cd relogin` command

func NewRepoAddCommand

func NewRepoAddCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewRepoAddCommand returns a new instance of an `cd repo add` command

func NewRepoCommand

func NewRepoCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewRepoCommand returns a new instance of an `cd repo` command

func NewRepoCredsAddCommand

func NewRepoCredsAddCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewRepoCredsAddCommand returns a new instance of an `cd repocreds add` command

func NewRepoCredsCommand

func NewRepoCredsCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewRepoCredsCommand returns a new instance of an `cd repocreds` command

func NewRepoCredsListCommand

func NewRepoCredsListCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewRepoCredsListCommand returns a new instance of an `cd repo list` command

func NewRepoCredsRemoveCommand

func NewRepoCredsRemoveCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewRepoCredsRemoveCommand returns a new instance of an `cd repocreds rm` command

func NewRepoGetCommand

func NewRepoGetCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewRepoGetCommand returns a new instance of an `cd repo get` command

func NewRepoListCommand

func NewRepoListCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewRepoListCommand returns a new instance of an `cd repo list` command

func NewRepoRemoveCommand

func NewRepoRemoveCommand(clientOpts *cdclient.ClientOptions) *cobra.Command

NewRepoRemoveCommand returns a new instance of an `cd repo rm` command

func NewVersionCmd

func NewVersionCmd(clientOpts *cdclient.ClientOptions, serverVersion *version.VersionMessage) *cobra.Command

NewVersionCmd returns a new `version` command to be used as a sub-command to root

func PrintResource

func PrintResource(resource any, output string) error

PrintResource prints a single resource in YAML or JSON format to stdout according to the output format

func PrintResourceList

func PrintResourceList(resources any, output string, single bool) error

PrintResourceList marshals & prints a list of resources to stdout according to the output format

Types

type AppWithLock

type AppWithLock struct {
	// contains filtered or unexported fields
}

AppWithLock encapsulates the application and its lock

func NewAppWithLock

func NewAppWithLock() *AppWithLock

NewAppWithLock creates a new AppWithLock instance

func (*AppWithLock) GetApp

func (a *AppWithLock) GetApp() *appv1.Application

GetApp safely retrieves the application

func (*AppWithLock) SetApp

func (a *AppWithLock) SetApp(app *appv1.Application)

SetApp safely updates the application

type DefaultPluginHandler

type DefaultPluginHandler struct {
	// contains filtered or unexported fields
}

func NewDefaultPluginHandler

func NewDefaultPluginHandler() *DefaultPluginHandler

NewDefaultPluginHandler instantiates a DefaultPluginHandler

func (*DefaultPluginHandler) HandleCommandExecutionError

func (h *DefaultPluginHandler) HandleCommandExecutionError(err error, isArgocdCLI bool, args []string) (msg string, retErr error)

HandleCommandExecutionError processes the error returned from executing the command. It handles both standard Hanzo CD commands and plugin commands. We don't require returning an error, but we are doing it to cover various test scenarios.

func (*DefaultPluginHandler) ListAvailablePlugins

func (h *DefaultPluginHandler) ListAvailablePlugins() []string

ListAvailablePlugins returns a list of plugin names that are available in the user's PATH for tab completion. It searches for executables matching the ValidPrefixes pattern.

type DisplayedAction

type DisplayedAction struct {
	Group    string
	Kind     string
	Name     string
	Action   string
	Disabled bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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