coreopts

package
v1.1.20 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 4 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveSessions

func ActiveSessions(db *sql.DB) ([]map[string]interface{}, error)

func CompareLastModified added in v1.0.1

func CompareLastModified(dfStatMapA map[string]interface{}, dfStatMapB map[string]interface{}) bool

func DecryptSecretConfig

func DecryptSecretConfig(tenantConfiguration map[string]interface{}, config map[string]interface{}) string

func FindIndexForService

func FindIndexForService(project string, service string) (string, []string, string, error)

func GetDFSPathName added in v1.0.1

func GetDFSPathName() (string, string)

func GetDatabaseName added in v1.0.1

func GetDatabaseName() string

func GetFolderPrefix

func GetFolderPrefix(custom []string) string

Folder prefix for _seed, etc...

func GetLocalHost

func GetLocalHost() string

func GetRegion

func GetRegion(hostName string) string

func GetSupportedEndpoints

func GetSupportedEndpoints() []string

func GetSupportedTemplates

func GetSupportedTemplates(custom []string) []string

func GetSyncedTables

func GetSyncedTables() []string

Which tables synced..

func GetUserCodeField

func GetUserCodeField() string

func GetUserNameField

func GetUserNameField() string

Begin old Active Sessions interface

func GetVaultHost

func GetVaultHost() string

func GetVaultHostPort

func GetVaultHostPort() string

func IsTestRunner

func IsTestRunner() bool

func NewOptionsBuilder added in v1.0.1

func NewOptionsBuilder(opts ...Option)

func PreviousStateCheck added in v1.0.1

func PreviousStateCheck(currentState int) int

func ProcessDeployPluginEnvConfig

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

Enrich plugin configs

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 {
	GetFolderPrefix              func(custom []string) string
	GetSupportedTemplates        func(custom []string) []string
	GetSupportedEndpoints        func() []string
	GetLocalHost                 func() string
	GetRegion                    func(hostName string) string
	GetVaultHost                 func() string
	GetVaultHostPort             func() string
	GetUserNameField             func() string
	GetUserCodeField             func() string
	ActiveSessions               func(db *sql.DB) ([]map[string]interface{}, error)
	GetSyncedTables              func() []string
	FindIndexForService          func(project string, service string) (string, []string, string, error)
	ProcessDeployPluginEnvConfig func(pluginEnvConfig map[string]interface{}) map[string]interface{}
	DecryptSecretConfig          func(tenantConfiguration map[string]interface{}, config map[string]interface{}) string
	GetDFSPathName               func() (string, string)
	GetDatabaseName              func() string
	CompareLastModified          func(dfStatMapA map[string]interface{}, dfStatMapB map[string]interface{}) bool
	PreviousStateCheck           func(currentState int) int
}
var BuildOptions *OptionsBuilder

Jump to

Keyboard shortcuts

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