Help us shape the future of Go! Take the 2026 Go Developer Survey

aws

package
v0.26.8 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 14 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 registering AWS cloud provider credentials with IAM authentication, and returns a Runner to execute the command.

Types

type Runner

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

	AccessKeyID     string
	SecretAccessKey string
	KubeContext     string
}

Runner is the runner implementation for the `rad credential register aws` command.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

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

func (*Runner) Run

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

Run() registers an AWS credential with the given context and workspace, and returns an error if unsuccessful.

func (*Runner) Validate

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

Validate() checks if the required workspace, output format, access key ID and secret access key are present, and if not, returns an error.

Jump to

Keyboard shortcuts

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