Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand creates a new Cobra command and a Runner to deploy a Bicep or ARM template to a specified environment, with optional parameters. It also adds common flags to the command for workspace, resource group, environment name, application name and parameters.
Types ¶
type EnvironmentCheckResult ¶ added in v0.55.0
type EnvironmentCheckResult struct {
UseApplicationsCore bool
ApplicationsCoreEnv *v20231001preview.EnvironmentResource
RadiusCoreEnv *v20250801preview.EnvironmentResource
}
EnvironmentCheckResult holds the result of checking for environments
type Runner ¶
type Runner struct {
Bicep bicep.Interface
ConfigHolder *framework.ConfigHolder
ConnectionFactory connections.Factory
RadiusCoreClientFactory *v20250801preview.ClientFactory
Deploy deploy.Interface
Output output.Interface
ApplicationName string
EnvironmentNameOrID string
FilePath string
Parameters map[string]map[string]any
Template map[string]any
TemplateInspectionResult bicep.TemplateInspectionResult
Workspace *workspaces.Workspace
Providers *clients.Providers
EnvResult *EnvironmentCheckResult
}
Runner is the runner implementation for the `rad deploy` command.
func (*Runner) FetchEnvironment ¶ added in v0.55.0
func (r *Runner) FetchEnvironment(ctx context.Context, envNameOrID string) (*EnvironmentCheckResult, error)
FetchEnvironment fetches Applications.Core and Radius.Core environments for a given name/id and returns the result If no environment is found, returns (nil, nil)
Click to show internal directories.
Click to hide internal directories.