bootstrap

package
v0.0.0-...-f88c608 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModelDefaultsProvider

func ModelDefaultsProvider(
	controllerConfig map[string]any,
	cloudRegionConfig map[string]any,
	cloudType string,
) service.ModelDefaultsProviderFunc

ModelDefaultsProvider is a bootstrap helper that wraps the raw config values passed in during bootstrap into a model default provider interface to be used when persisting initial model config. Config passed to this func can be nil.

func SetCloudDefaults

func SetCloudDefaults(
	cloudName string,
	defaults map[string]any,
) internaldatabase.BootstrapOpt

SetCloudDefaults is responsible for setting a previously inserted cloud's default config values that will be used as part of the default values supplied to a model's config. If no cloud exists for the specified name an error satisfying github.com/juju/juju/domain/cloud/errors.NotFound will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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