buildopts

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 2 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize(db *sql.DB, userIdentifier string, userPassword string) (bool, string, error)

func CheckMemLock

func CheckMemLock(bucket string, key string) bool

Whether to memlock data.

func GetExtensionAuthComponents

func GetExtensionAuthComponents(config map[string]interface{}) map[string]interface{}

GetExtensionAuthComponents - obtains an auth components

func GetLocalVaultAddr

func GetLocalVaultAddr() string

Local vault address

func GetSupportedSourceRegions

func GetSupportedSourceRegions() []string

Supported regions

func GetSupportedTemplates

func GetSupportedTemplates() []string

func GetSyncedTables

func GetSyncedTables() []string

Which tables synced..

func GetTestConfig

func GetTestConfig(token string, wantPluginPaths bool) map[string]interface{}

Test configurations.

func GetTestDeployConfig

func GetTestDeployConfig(token string) map[string]interface{}

func GetTrcDbUrl added in v1.0.1

func GetTrcDbUrl(data map[string]interface{}) string

func NewOptionsBuilder added in v1.0.1

func NewOptionsBuilder(opts ...Option)

func ProcessPluginEnvConfig

func ProcessPluginEnvConfig(pluginEnvConfig map[string]interface{}) map[string]interface{}

func SetErrorLogger

func SetErrorLogger(logger interface{})

func SetLogger

func SetLogger(logger interface{})

Types

type Option added in v1.0.1

type Option func(*OptionsBuilder)

func LoadOptions added in v1.0.1

func LoadOptions() Option

type OptionsBuilder added in v1.0.1

type OptionsBuilder struct {
	SetLogger      func(logger interface{})
	SetErrorLogger func(logger interface{})

	GetLocalVaultAddr          func() string
	GetSupportedSourceRegions  func() []string
	GetTestDeployConfig        func(token string) map[string]interface{}
	ProcessPluginEnvConfig     func(pluginEnvConfig map[string]interface{}) map[string]interface{}
	GetExtensionAuthComponents func(config map[string]interface{}) map[string]interface{}
	GetSyncedTables            func() []string
	Authorize                  func(db *sql.DB, userIdentifier string, userPassword string) (bool, string, error)
	CheckMemLock               func(bucket string, key string) bool
	GetTrcDbUrl                func(data map[string]interface{}) string
}
var BuildOptions *OptionsBuilder

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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