config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

This package contains the general configuration for repositories and for the lambda in general

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LambdaConfig

type LambdaConfig struct {
	NumberOfRetries int
	LogLevel        string
	StackName       string
	Sidecar         RepoConfig
	Repo            RepoConfig
}

LambdaConfig is the configuration for the lambda in general. This struct is to be used via the global Config function.

func Config

func Config() *LambdaConfig

Config returns the global configuration for the lambda function, initializing all values and recovering the secrets.

type PostgreSQLConfig added in v0.4.0

type PostgreSQLConfig struct {
	ConnectionStringOptions string
}

type RepoConfig

type RepoConfig struct {
	Host                    string
	Port                    int
	User                    string
	Password                string
	Database                string
	RepoName                string
	RepoType                string
	ConnectionStringOptions string
	SnowflakeConfig         SnowflakeConfig
	ConnectionTimeout       int
}

RepoConfig is the configuration for a repository, including connection information and metadata.

type SnowflakeConfig added in v0.4.0

type SnowflakeConfig struct {
	Account   string
	Role      string
	Warehouse string
}

Jump to

Keyboard shortcuts

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