show

package
v0.26.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 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 for showing the details of a resource group, with flags for resource group, workspace, and output. It returns the command and a Runner to execute the command.

Types

type Runner

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

Runner is the runner implementation for the `rad group show` command.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates a new instance of the `rad group show` runner.

func (*Runner) Run

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

Run creates an ApplicationsManagementClient, retrieves a resource group, and writes the resource group to an output, returning an error if any of these steps fail.

func (*Runner) Validate

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

Validate checks the command line arguments, workspace, output format, and resource group, and sets the corresponding fields in the Runner struct. It returns 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