update

package
v0.26.5 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 15 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 updating an environment's configuration, such as adding or removing cloud providers, and returns a Runner to execute the command.

Types

type Runner

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

	EnvName string
	// contains filtered or unexported fields
}

Runner is the runner implementation for the `rad env update` command.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates a new instance of the `rad env update` runner.

func (*Runner) Run

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

Run updates the environment with the given name with the given cloud provider scope. It returns an error if the environment does not exist or if the update fails.

func (*Runner) Validate

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

Validate checks the command flags and arguments for the required workspace, scope, environment name, Azure subscription ID, Azure resource group, AWS region, and AWS account ID, and sets the corresponding values in the Runner struct. If any of these values are not provided, an error is returned.

Jump to

Keyboard shortcuts

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