# Packages
Package aws is a generated GoMock package.
Package azure is a generated GoMock package.
Package bicep is a generated GoMock package.
Package clients is a generated GoMock package.
No description provided by the author
clierrors defines error types that are useful in the CLI for customizing the experience when a failure occurs.
No description provided by the author
config contains functionality for reading Radius' configuration and interacting with it.
connections contains functionality for using the workspace.Connection concept of the CLI to connect and interact with the remote endpoints that are described by the workspace concept (Radius control plane, environment, et al).
Package credential is a generated GoMock package.
Package deploy is a generated GoMock package.
No description provided by the author
Package framework is a generated GoMock package.
Package helm is a generated GoMock package.
Package kubernetes is a generated GoMock package.
No description provided by the author
Package output is a generated GoMock package.
Package prompt is a generated GoMock package.
package setup contains support functions for programmatically installing and uninstalling Radius.
workspaces contains functionality for using the workspace concept of the CLI to store data related to the remote endpoints that are described by the workspace concept (Radius control plane, environment, et al).
# Functions
DidSpecifyEnvironmentName checks if an environment name is provided as a flag.
EditWorkspaces is a function that allows users to edit the workspaces in a config file.
GetConfigFilePath attempts to find the user's config file path, first by checking if one has already been set, and if not, by using the user's home directory.
GetResourceType retrieves the resource type flag from the given command and returns it, or an error if the flag is not set.
GetWorkspace reads the workspace section from the viper configuration and returns the workspace with the given name, or an error if the workspace does not exist or there was an issue reading the configuration.
HasWorkspace reads the workspace section from the given Viper instance and checks if it contains a workspace with the given name.
LoadConfig() attempts to read a configuration file from the given path and acquire a shared lock on it.
LoadConfigNoLock reads in a configuration file from the given path and creates it if it doesn't exist.
ReadApplicationName reads the application name from the command line flag and, if not provided, from the workspace configuration.
ReadApplicationNameArgs reads the application name from either the command line arguments or the "-a" flag, and returns an error if both are specified.
ReadEnvironmentNameArgs reads the environment name from either the command line arguments or the "-e" flag, and returns an error if both are specified.
ReadResourceGroupNameArgs reads a resource group name from either a command flag or an argument, and returns an error if
both are specified.
ReadWorkspaceNameArgs reads a workspace name from either a command flag or an argument, and returns an error if both are
specified.
ReadWorkspaceNameSecondArg checks if a workspace name is provided via a flag or as the second argument in the command, and returns an error if both are specified.
ReadWorkspaceSection reads the WorkspaceSection from the given viper instance, validates it and returns it.
RequireApplication requires the user to provide an application name as an argument and returns it as a string.
RequireApplicationArgs checks if an application name is provided as an argument, and if not, checks if a default application is set in the workspace.
"RequireAzureResource" takes in a command and a slice of strings and returns an AzureResource object and an error.
RequireAzureSubscriptionId is used by commands that require specifying an Azure subscriptionId using a flag.
RequireEnvironmentName checks if an environment name is provided as a flag or as a default environment in the workspace, and returns an error if neither is present.
RequireEnvironmentNameArgs checks if an environment name is provided as an argument or if a default environment is set in the workspace, and returns an error if neither is the case.
RequireEnvironmentNameOrID checks if an environment name or ID is provided as a flag or as a default environment in the workspace, and returns an error if neither is present.
RequireKubeContext checks if a kubecontext is provided as a flag, and if not, uses the current context.
No description provided by the author
RequireRadYAML checks if a radfile flag is provided and if not, returns the default rad.yaml file in the current directory.
RequireRecipeNameArgs checks if the provided arguments contain at least one string, and if not, returns an error.
RequireResource parses the given command and arguments to extract two required values, a resource type and a resource name, and returns them.
RequireResourceGroupNameArgs is used by commands that require a resource group name to be specified.
RequireResourceType checks if the first argument provided is a valid resource type and returns it if it is.
RequireResourceTypeAndName checks if the provided arguments contain a resource type and name, and returns them if they are present.
RequireScope checks if a resource group is passed in as a flag and returns the scope of the resource group if it is, otherwise it returns the scope of the workspace if it is set, otherwise it returns an error.
RequireUCPResourceGroup reads the resource group name from the command line arguments and returns an error if the name is not provided or is empty.
RequireWorkspace reads the workspace name from the command flags, retrieves the workspace from the configuration, and returns it, or a fallback workspace if none is found.
RequireWorkspaceArgs reads the workspace name from the command line arguments, retrieves the workspace from the configuration, and returns it.
SaveConfig saves the configuration to the file path specified in the viper instance.
SaveConfigOnLock acquires an exclusive lock on the config file and updates it with the given config, retrying every second for 5 times if another goroutine is holding the lock.
UpdateWorkspaceSection updates the WorkspacesKey in the given viper instance with the given WorkspaceSection.
# Constants
EnvironmentKey is the key used for the environment section.
No description provided by the author
EnvironmentKey is the key used for the environment section.
# Structs
No description provided by the author
No description provided by the author