preview

package
v0.58.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Copyright 2023 The Radius Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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 command and runner for the `rad init --preview` command.

Types

type Runner

type Runner struct {

	// ConfigFileInterface is the interface for the config file.
	ConfigFileInterface framework.ConfigFileInterface

	// ConfigHolder is the interface for the config holder.
	ConfigHolder *framework.ConfigHolder

	// ConnectionFactory is the interface for the connection factory.
	ConnectionFactory connections.Factory

	// HelmInterface is the interface for the helm client.
	HelmInterface helm.Interface

	// KubernetesInterface is the interface for the kubernetes client.
	KubernetesInterface kubernetes.Interface

	// Output is the interface for console output.
	Output output.Interface

	// Prompter is the interface for the prompter.
	Prompter prompt.Interface

	// RadiusCoreClientFactory is the client factory for Radius.Core resources.
	// If nil, it will be initialized during Run.
	RadiusCoreClientFactory *corerpv20250801.ClientFactory

	// DefaultScopeClientFactory is the client factory scoped to the default resource group.
	// The default recipe pack is always created/queried in the default scope.
	DefaultScopeClientFactory *corerpv20250801.ClientFactory

	// Format is the output format.
	Format string

	// Workspace is the workspace to use. This will be populated by Validate.
	Workspace *workspaces.Workspace

	// Full determines whether or not we ask the user for all options.
	Full bool

	// Set is the list of additional Helm values to set.
	Set []string

	// SetFile is the list of additional Helm values from files.
	SetFile []string

	// Options provides the options to used for Radius initialization. This will be populated by Validate.
	Options *initOptions
	// contains filtered or unexported fields
}

Runner is the runner implementation for the `rad init --preview` command.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates a new instance of the `rad init --preview` runner.

func (*Runner) CreateEnvironment

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

CreateEnvironment creates a Radius.Core environment with the default recipe pack.

func (*Runner) Run

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

Run runs the `rad init --preview` command.

func (*Runner) Validate

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

Validate runs validation for the `rad init --preview` command.

Jump to

Keyboard shortcuts

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