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

create

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: Apache-2.0 Imports: 12 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 an instance of the `rad resource-provider create` command and runner.

Types

type Runner

type Runner struct {
	UCPClientFactory *v20231001preview.ClientFactory
	ConfigHolder     *framework.ConfigHolder
	Output           output.Interface
	Format           string
	Workspace        *workspaces.Workspace

	ResourceProviderManifestFilePath string
	ResourceProvider                 *manifest.ResourceProvider
	Logger                           func(format string, args ...any)
}

Runner is the Runner implementation for the `rad resource-provider create` command.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates an instance of the runner for the `rad resource-provider create` command.

func (*Runner) Run

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

Run runs the `rad resource-provider create` command.

func (*Runner) Validate

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

Validate runs validation for the `rad resource-provider create` command.

Jump to

Keyboard shortcuts

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