unregister

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(factory framework.Factory) (*cobra.Command, framework.Runner)

NewCommand creates a new Cobra command and a new Runner to unregister a configured cloud provider credential from the Radius installation, and adds flags for output and workspace.

Types

type Runner

type Runner struct {
	ConfigHolder      *framework.ConfigHolder
	ConnectionFactory connections.Factory
	Output            output.Interface
	Format            string
	Workspace         *workspaces.Workspace
	Kind              string
}

Runner is the runner implementation for the `rad credential unregister` command.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates a new instance of the `rad credential unregister` runner.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

Run attempts to delete a cloud provider credential for a given Radius installation, and logs a message depending on whether the credential was found and deleted or not.

func (*Runner) Validate

func (r *Runner) Validate(cmd *cobra.Command, args []string) error

Validate validates the command line arguments, workspace and output format, and checks if the cloud provider name is valid, returning an error if any of these checks fail.

Jump to

Keyboard shortcuts

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