Documentation
¶
Index ¶
- func CheckIfRecipeExists(ctx context.Context, client clients.ApplicationsManagementClient, ...) (corerp.EnvironmentResource, ...)
- func CreateEnvProviders(providersList []any) (corerp.Providers, error)
- func GetNamespace(envResource corerp.EnvironmentResource) string
- func InitializeClientFactory(ctx context.Context, workspace *workspaces.Workspace) (*v20231001preview.ClientFactory, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfRecipeExists ¶
func CheckIfRecipeExists(ctx context.Context, client clients.ApplicationsManagementClient, environmentName string, recipeName string, resourceType string) (corerp.EnvironmentResource, map[string]map[string]corerp.RecipePropertiesClassification, error)
CheckIfRecipeExists checks if a given recipe exists in a given environment and returns the environment resource, recipe properties and an error if the recipe does not exist.
func CreateEnvProviders ¶
CreateEnvProviders iterates through a list of providers and creates a corerp.Providers object with the appropriate scopes for each provider type (Azure or AWS). If more than one provider of the same type is found, an error is returned.
If an invalid type is found, an error is returned.
func GetNamespace ¶
func GetNamespace(envResource corerp.EnvironmentResource) string
GetNamespace takes in an EnvironmentResource object and returns a string representing the namespace associated with the KubernetesCompute object, or an empty string if the Compute property is not a KubernetesCompute object.
func InitializeClientFactory ¶ added in v0.48.0
func InitializeClientFactory(ctx context.Context, workspace *workspaces.Workspace) (*v20231001preview.ClientFactory, error)
InitializeClientFactory initializes a new v20231001preview.ClientFactory using the provided workspace context. It connects to the workspace and creates a new client factory with anonymous credentials. If the connection fails, it returns an error.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
app
|
|
|
bicep
|
|
|
env
|
|
|
namespace
Package namespace is a generated GoMock package.
|
Package namespace is a generated GoMock package. |
|
Package radinit is a generated GoMock package.
|
Package radinit is a generated GoMock package. |
|
recipepack
|
|
|
resource
|
|
|
resourceprovider
|
|
|
resourcetype
|
|
|
workspace
|
|