util

package
v1.54.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 26 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNotSudo

func CheckNotSudo()

CheckNotSudo -- checks if current user is sudoer and exits if they are.

func GetJSONFromClientByGet

func GetJSONFromClientByGet(config *coreconfig.CoreConfig, httpClient *http.Client, headers map[string]string, address string, body io.Reader) (map[string]any, int, error)

func GetJSONFromClientByPost

func GetJSONFromClientByPost(config *coreconfig.CoreConfig, httpClient *http.Client, headers map[string]string, address string, body io.Reader) (map[string]any, int, error)

func GetLocalVaultHost

func GetLocalVaultHost(withPort bool, vaultHostChan chan string, vaultLookupErrChan chan error, logger *log.Logger)

Unused/deprecated

func GetPluginToolConfig

func GetPluginToolConfig(driverConfig *config.DriverConfig, mod *helperkv.Modifier, pluginConfig map[string]any, defineService bool) (map[string]any, error)

func LoadBaseTemplate

func LoadBaseTemplate(driverConfig *config.DriverConfig, templateResult *extract.TemplateResultData, goMod *helperkv.Modifier, project string, service string, templatePath string) error

func ResolveTokenName

func ResolveTokenName(env string) string

func Sanitize added in v1.7.3

func Sanitize(input any) string

func SeedVaultById

func SeedVaultById(driverConfig *config.DriverConfig, goMod *helperkv.Modifier, service string, addressPtr *string, tokenPtr *string, baseTemplate *extract.TemplateResultData, tableData map[string]any, indexPath string, project string) error

func UncompressZipFile added in v1.3.4

func UncompressZipFile(filePath string) (bool, []error)

Types

type BootFlowMachineFunc added in v1.38.3

type BootFlowMachineFunc func(flowMachineInitContext *flowcore.FlowMachineInitContext, driverConfig *config.DriverConfig, pluginConfig map[string]any, logger *log.Logger) (any, error)

type ProcessFlowConfig

type ProcessFlowConfig func(pluginEnvConfig map[string]any) map[string]any

type ProcessFlowInitConfig

type ProcessFlowInitConfig func(flowMachineInitContext *flowcore.FlowMachineInitContext, pluginConfig map[string]any, logger *log.Logger) error

type Properties

type Properties struct {
	AuthEndpoint string
	// contains filtered or unexported fields
}

Properties stores all configuration properties for a project.

func NewProperties

func NewProperties(config *coreconfig.CoreConfig, v *sys.Vault, mod *helperkv.Modifier, env string, project string, service string) (*Properties, error)

func (*Properties) GetConfigValue

func (p *Properties) GetConfigValue(service string, config string, key string) (string, bool)

GetConfigValue gets an individal configuration value for a service from the data store.

func (*Properties) GetConfigValues

func (p *Properties) GetConfigValues(service string, config string) (map[string]any, bool)

GetConfigValues gets an individal configuration value for a service from the data store.

func (*Properties) GetPluginData

func (p *Properties) GetPluginData(region string, service string, config string, log *log.Logger) (map[string]any, map[string]any)

func (*Properties) GetRegionConfigValues added in v1.32.0

func (p *Properties) GetRegionConfigValues(service string, config string) (map[string]any, bool)

func (*Properties) GetValue

func (p *Properties) GetValue(service string, keyPath []string, key string) (string, error)

GetValue gets an individal configuration value for a service from the data store.

func (*Properties) WritePluginData

func (p *Properties) WritePluginData(pluginData map[string]any, replacedFields map[string]any, mod *helperkv.Modifier, log *log.Logger, hostRegion string, pluginName string) error

Directories

Path Synopsis
Package hive provides the kernel plugin management infrastructure for Tierceron.
Package hive provides the kernel plugin management infrastructure for Tierceron.

Jump to

Keyboard shortcuts

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