list

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 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, and configures the command with the runner, output flag, and workspace flag.

Types

type Runner

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

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

func NewRunner

func NewRunner(factory framework.Factory) *Runner

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

func (*Runner) Run

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

Run() lists the credentials for all cloud providers for a given Radius installation and prints the results in a table format. It returns an error if there is an issue with creating the credential management client or listing the credentials.

func (*Runner) Validate

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

Validate() checks if the workspace and output format are valid and sets them in the Runner struct, returning an error if either is invalid.

Jump to

Keyboard shortcuts

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