dynamicrp

package
v0.41.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

dynamicrp holds the implementation of the dynamic resource provider. The dynamicrp is responsible for managing the lifecycle of resources that are defined without their own resource provider implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Bicep configures properties for the Bicep recipe driver.
	Bicep hostoptions.BicepOptions `yaml:"bicep"`

	// Environment is the configuration for the hosting environment.
	Environment hostoptions.EnvironmentOptions `yaml:"environment"`

	// Logging is the configuration for the logging system.
	Logging ucplog.LoggingOptions `yaml:"logging"`

	// Metrics is the configuration for the metrics endpoint.
	Metrics metricsprovider.MetricsProviderOptions `yaml:"metricsProvider"`

	// Profiler is the configuration for the profiler endpoint.
	Profiler profilerprovider.ProfilerProviderOptions `yaml:"profilerProvider"`

	// Queue is the configuration for the message queue.
	Queue queueprovider.QueueProviderOptions `yaml:"queueProvider"`

	// Secrets is the configuration for the secret storage system.
	Secrets secretprovider.SecretProviderOptions `yaml:"secretProvider"`

	// Server is the configuration for the HTTP server.
	Server hostoptions.ServerOptions `yaml:"server"`

	// Storage is the configuration for the database used for storage.
	Storage dataprovider.StorageProviderOptions `yaml:"storageProvider"`

	// Terraform configures properties for the Terraform recipe driver.
	Terraform hostoptions.TerraformOptions `yaml:"terraform"`

	// Tracing is the configuration for the tracing system.
	Tracing trace.Options `yaml:"tracerProvider"`

	// UCPConfig is the configuration for the connection to UCP.
	UCP ucpconfig.UCPOptions `yaml:"ucp"`

	// Worker is the configuration for the backend worker server.
	Worker hostoptions.WorkerServerOptions `yaml:"workerServer"`
}

Config defines the configuration for the DynamicRP server.

func LoadConfig

func LoadConfig(bs []byte) (*Config, error)

LoadConfig loads a Config from bytes.

type Options

type Options struct {
	// Config is the configuration for the server.
	Config *Config

	// QueueProvider provides access to the message queue client.
	QueueProvider *queueprovider.QueueProvider

	// Recipes is the configuration for the recipe subsystem.
	Recipes *controllerconfig.RecipeControllerConfig

	// SecretProvider provides access to the secret storage system.
	SecretProvider *secretprovider.SecretProvider

	// StatusManager implements operations on async operation statuses.
	StatusManager statusmanager.StatusManager

	// StorageProvider provides access to the data storage system.
	StorageProvider dataprovider.DataStorageProvider

	// UCP is the connection to UCP
	UCP sdk.Connection
}

Options holds the configuration options and shared services for the server.

func NewOptions

func NewOptions(ctx context.Context, config *Config) (*Options, error)

NewOptions creates a new Options instance from the given configuration.

Directories

Path Synopsis
server holds the server implementation for the dynamicrp.
server holds the server implementation for the dynamicrp.

Jump to

Keyboard shortcuts

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