factory

package
v0.0.0-...-464f52f Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIG_PATH = "config"

Variables

Functions

func GetVaultHost

func GetVaultHost() string

func GetVaultPort

func GetVaultPort() string

func Init

func Init(processFlowConfig trcvutils.ProcessFlowConfig, processFlows trcvutils.ProcessFlowFunc, headless bool, l *log.Logger)

func ProcessPluginEnvConfig

func ProcessPluginEnvConfig(processFlowConfig trcvutils.ProcessFlowConfig,

	processFlowInit trcvutils.ProcessFlowFunc,
	pluginEnvConfig map[string]interface{},
	configCompleteChan chan bool) error

func PushEnv

func PushEnv(envMap map[string]interface{})

func PushPluginSha

func PushPluginSha(driverConfig *eUtils.DriverConfig, pluginConfig map[string]interface{}, vaultPluginSignature map[string]interface{})

Only push to sha256 chan if one is present. Non blocking otherwise.

func StartPluginSettingEater

func StartPluginSettingEater()

This is to flush pluginSettingsChan on an interval to prevent deadlocks.

func TrcCreate

func TrcCreate(ctx context.Context, req *logical.Request, data *framework.FieldData) (*logical.Response, error)

func TrcFactory

func TrcFactory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

TrcFactory configures and returns Mock backends

func TrcInitialize

func TrcInitialize(ctx context.Context, req *logical.InitializationRequest) error

func TrcRead

func TrcRead(ctx context.Context, req *logical.Request, data *framework.FieldData) (*logical.Response, error)

func TrcUpdate

func TrcUpdate(ctx context.Context, req *logical.Request, data *framework.FieldData) (*logical.Response, error)

Types

type EnvConfig

type EnvConfig struct {
	Env string `yaml:"-"`
	// Mysql access.
	MysqlDburl    string `yaml:"mysqldburl,omitempty"`
	MysqlDbuser   string `yaml:"mysqldbuser,omitempty"`
	MysqlDbpasswd string `yaml:"mysqldbpassword,omitempty"`
	// Local db access.
	Dbuser   string `yaml:"dbuser,omitempty"`
	Dbpasswd string `yaml:"dbpassword,omitempty"`
	Maxconn  string `yaml:"maxconn,omitempty"` // Maximum allowed db connections
}

Jump to

Keyboard shortcuts

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