run

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 20 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 that can be used to run an application specified by a Bicep or ARM template, port-forward container ports and stream container logs to a user's terminal, and accepts the same parameters as the 'rad

deploy' command. It returns an error if the command is not run with exactly one argument.

Types

type Runner

type Runner struct {
	deploycmd.Runner
	Logstream   logstream.Interface
	Portforward portforward.Interface
	// contains filtered or unexported fields
}

Runner is the runner implementation for the `rad run` command.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates a new instance of the `rad run` runner.

func (*Runner) Run

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

Run starts port-forwarding and log streaming for a given application in a given Kubernetes context, and returns an error if any of the operations fail.

func (*Runner) Validate

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

The Validate function performs additional validations on the deployment and requires an application name, returning an error if one is not specified.

Jump to

Keyboard shortcuts

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