initlib

package
v1.18.11 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEngines

func CreateEngines(config *core.CoreConfig, v *sys.Vault)

CreateEngines adds engines specified by the list 'engines'

func DownloadTemplateDirectory

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

func DownloadTemplates

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

func GetApproleFileNames

func GetApproleFileNames(config *core.CoreConfig, namespace string) []string

func GetExistsPolicies

func GetExistsPolicies(config *core.CoreConfig, dir string, v *sys.Vault) (bool, error)

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

func GetExistsRoles

func GetExistsRoles(config *core.CoreConfig, dir string, v *sys.Vault) (bool, error)

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

func GetTemplateParam

func GetTemplateParam(driverConfig *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(driverConfig *eUtils.DriverConfig) error

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

func SeedVaultFromData

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

SeedVaultFromData takes file bytes and seeds the vault with contained data

func SeedVaultFromFile

func SeedVaultFromFile(driverConfig *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 *core.CoreConfig, dir string, v *sys.Vault, noPermissions bool) error

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

func UploadTemplateDirectory

func UploadTemplateDirectory(config *core.CoreConfig, mod *helperkv.Modifier, dirName string, templateFilter *string) ([]string, error)

func UploadTemplates

func UploadTemplates(config *core.CoreConfig, mod *helperkv.Modifier, dirName string, templateFilter *string) ([]string, error)

func UploadTokenCidrRoles

func UploadTokenCidrRoles(config *core.CoreConfig, dir string, v *sys.Vault) error

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

func UploadTokens

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

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

func WriteData

func WriteData(driverConfig *eUtils.DriverConfig, path string, data map[string]interface{}, mod *helperkv.Modifier) *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