initlib

package
v1.1.19 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEngines

func CreateEngines(config *eUtils.DriverConfig, v *sys.Vault)

CreateEngines adds engines specified by the list 'engines'

func DownloadTemplateDirectory

func DownloadTemplateDirectory(config *eUtils.DriverConfig, mod *helperkv.Modifier, dirName string, logger *log.Logger, templateFilter *string) ([]string, error)

func DownloadTemplates

func DownloadTemplates(config *eUtils.DriverConfig, mod *helperkv.Modifier, dirName string, logger *log.Logger, templatePaths *string)

func GetApproleFileNames

func GetApproleFileNames(config *eUtils.DriverConfig, namespace string) []string

func GetExistsPolicies

func GetExistsPolicies(config *eUtils.DriverConfig, dir string, v *sys.Vault) (bool, error)

GetExistsPolicies accepts a file directory and vault object to check policies for. Logs to pased logger

func GetExistsRoles

func GetExistsRoles(config *eUtils.DriverConfig, dir string, v *sys.Vault) (bool, error)

GetExistsRole accepts a file directory and vault object to check existence of token roles. Logs to pased logger

func GetTemplateParam

func GetTemplateParam(config *eUtils.DriverConfig, mod *helperkv.Modifier, filePath string, paramWanted string) (string, error)

func ParseApproleYaml

func ParseApproleYaml(fileName string, namespace string) (map[interface{}]interface{}, error)

func SeedVault

func SeedVault(config *eUtils.DriverConfig) error

SeedVault seeds the vault with seed files in the given directory -> only init uses this

func SeedVaultFromData

func SeedVaultFromData(config *eUtils.DriverConfig, filepath string, fData []byte) error

SeedVaultFromData takes file bytes and seeds the vault with contained data

func SeedVaultFromFile

func SeedVaultFromFile(config *eUtils.DriverConfig, filepath string)

SeedVaultFromFile takes a file path and seeds the vault with the seeds found in an individual file

func UploadPolicies

func UploadPolicies(config *eUtils.DriverConfig, dir string, v *sys.Vault, noPermissions bool) error

UploadPolicies accepts a file directory and vault object to upload policies to. Logs to pased logger

func UploadTemplateDirectory

func UploadTemplateDirectory(c *eUtils.DriverConfig, mod *helperkv.Modifier, dirName string) ([]string, error)

func UploadTemplates

func UploadTemplates(c *eUtils.DriverConfig, mod *helperkv.Modifier, dirName string) ([]string, error)

func UploadTokenCidrRoles

func UploadTokenCidrRoles(config *eUtils.DriverConfig, dir string, v *sys.Vault) error

UploadTokenCidrRoles accepts a file directory and vault object to upload token roles to. Logs to pased logger

func UploadTokens

func UploadTokens(config *eUtils.DriverConfig, dir string, fileFilterPtr *string, v *sys.Vault) []*pb.InitResp_Token

UploadTokens accepts a file directory and vault object to upload tokens to. Logs to pased logger

func WriteData

func WriteData(config *eUtils.DriverConfig, path string, data map[string]interface{}, mod *helperkv.Modifier)

WriteData takes entry path and date from each iteration of writeStack in SeedVaultFromData and writes to vault

Types

This section is empty.

Jump to

Keyboard shortcuts

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