Documentation ¶
Index ¶
- func AddCommitFileToGitRepository(repository, branchName string, auth *http.BasicAuth, fileContent []byte, ...) (pushed bool)
- func AddValueToRedisSet(redisClient *redis.Client, setKey, value string) (isSetValueunique bool)
- func AskMultiSelectQuestion(questionText string, options []string) []string
- func AskSingleInputQuestion(questionText string, defaultAnswer string) string
- func AskSingleSelectQuestion(questionText string, options []string) string
- func CheckRedisKV(connectionString, redisPassword, key, expectedValue string) (keyValueExists bool)
- func CheckUrlAvailability(webURL string) bool
- func CheckVaultKVExistenceInSecretPath(kvpath, token string) bool
- func CloneGitRepository(repository, branchName, commitId string, auth *http.BasicAuth) (fs billy.Filesystem, cloned bool)
- func ConvertJSONToYAML(jsonString string) string
- func ConvertYAMLToJSON(yamlString string) string
- func CreateGitAuth(gitUser, gitToken string) *http.BasicAuth
- func CreateMinioBucket(minioClient *minio.Client, bucket, location string) bool
- func CreateMinioClient() (bool, *minio.Client)
- func CreateRedisClient(connectionString, redisPassword string) (client *redis.Client)
- func CreateTableHeader(s interface{}) table.Row
- func CreateTableRows(s interface{}) table.Row
- func DeleteRedisSet(redisClient *redis.Client, setKey string) (isSetDeleted bool)
- func DownloadFileWithProgressBar(downloadUrl, targetDir string)
- func DownloadObjectFromMinioBucket(minioClient *minio.Client, bucket, objectname, destinationName string) bool
- func EncryptStore(ageKey, rawData string) (encryptedData string)
- func EnqueueDataInRedisStreams(connectionString, redisPassword, stream string, values map[string]interface{}) (enqueue bool)
- func ExtractTarGzArchive(archiveFilePath, extractionFilePath string, extractFileMode int)
- func GenerateAgeIdentitdy() (identity *age.X25519Identity)
- func GetAllValuesFromRedis(redisClient *redis.Client, ctx context.Context, key string) []string
- func GetCommitInformationFromGithubRepo(userName, repoName, branchName, option string) (getCommits bool, allCommits []map[string]interface{}, err error)
- func GetFileListFromGitRepository(directory string, fs billy.Filesystem) (fileList, directoryList []string)
- func GetObjectsFromMinioBucket(minioClient *minio.Client, bucket string) []string
- func GetRandomValueFromRedis(redisClient *redis.Client, ctx context.Context, key string) string
- func GetRedisJSON(redisJSONHandler *rejson.Handler, jsonKey string) (jsonObject []byte, jsonExists bool)
- func GetSecretValueFromVaultSecretEngine(vaultConnectionInformation map[string]string) (string, string, string, string)
- func GetUnderlyingAsValue(data interface{}) reflect.Value
- func GetValueFromRedisByKey(redisClient *redis.Client, key string) (value string)
- func GetValuesFromRedisSet(redisClient *redis.Client, setKey string) (values []string)
- func GetVaultConnectionInformation() map[string]string
- func GetVaultKvSecretEngines(vaultAddr, vaultToken, vaultNamespace string) []string
- func GetVaultKvSecretPaths(vaultAddr, vaultToken, vaultNamespace, kvpath string) []string
- func GetVaultSecretValue(kvpath, token string) string
- func GetYamlStringKey(key, pathToConfig, extension string) string
- func ReadFileContentFromGitRepo(repo billy.Filesystem, filePath string) string
- func ReadInlineYamlToObject(inlineYAML []byte, yamlObject interface{}) interface{}
- func ReadVaultSecretEngines(vaultAddr, vaultToken, vaultNamespace, kvpath string) []string
- func ReadYamlKeyValuesFromFile(yamlFileContent []byte) (yamlStructure map[string]interface{})
- func ReadYamlToObject(pathToYAML, fileExtension string, yamlObject interface{}) interface{}
- func RemoveValueFromRedis(redisClient *redis.Client, ctx context.Context, key string, member string) bool
- func RenderTemplateSurvey(templateContent string, globalValues map[string]interface{}) (string, map[string]interface{})
- func SendWebhookToTeams(webhook MsTeamsWebhook) bool
- func SetRedisJSON(redisJSONHandler *rejson.Handler, jsonObject interface{}, jsonKey string)
- func StoreSecretInSecretEngine(vaultAddr, vaultToken, vaultNamespace, secretEngine, secretName string, ...)
- func UnZipArchive(source, destination string) error
- func UploadObjectToMinioBucket(minioClient *minio.Client, bucket, sourcePath, objectName string) (bool, int64)
- func VerifyEnvVars(envVars []string) bool
- func VerifyVaultEnvVars() (string, bool)
- type Client
- type MsTeamsWebhook
- type RenderSurvey
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommitFileToGitRepository ¶ added in v0.1.38
func AddValueToRedisSet ¶ added in v0.1.7
func AskMultiSelectQuestion ¶
func AskSingleInputQuestion ¶
func AskSingleSelectQuestion ¶
func CheckRedisKV ¶ added in v0.1.12
func CheckUrlAvailability ¶ added in v0.1.41
func CloneGitRepository ¶ added in v0.1.17
func ConvertJSONToYAML ¶ added in v0.1.32
func ConvertYAMLToJSON ¶ added in v0.1.32
func CreateGitAuth ¶ added in v0.1.18
func CreateMinioBucket ¶ added in v0.1.84
func CreateMinioClient ¶ added in v0.1.83
func CreateMinioClient() (bool, *minio.Client)
func CreateRedisClient ¶ added in v0.1.8
func CreateRedisClient(connectionString, redisPassword string) (client *redis.Client)
func CreateTableHeader ¶ added in v0.1.5
func CreateTableRows ¶ added in v0.1.6
func DeleteRedisSet ¶ added in v0.1.80
func DownloadFileWithProgressBar ¶ added in v0.1.24
func DownloadFileWithProgressBar(downloadUrl, targetDir string)
func DownloadObjectFromMinioBucket ¶ added in v0.1.83
func EncryptStore ¶ added in v0.1.89
func EnqueueDataInRedisStreams ¶ added in v0.1.13
func ExtractTarGzArchive ¶ added in v0.1.31
func GenerateAgeIdentitdy ¶ added in v0.1.89
func GenerateAgeIdentitdy() (identity *age.X25519Identity)
func GetAllValuesFromRedis ¶ added in v0.1.7
func GetCommitInformationFromGithubRepo ¶ added in v0.1.86
func GetFileListFromGitRepository ¶ added in v0.1.17
func GetFileListFromGitRepository(directory string, fs billy.Filesystem) (fileList, directoryList []string)
func GetObjectsFromMinioBucket ¶ added in v0.1.83
func GetRandomValueFromRedis ¶ added in v0.1.7
func GetRedisJSON ¶ added in v0.1.33
func GetUnderlyingAsValue ¶ added in v0.1.6
func GetValueFromRedisByKey ¶ added in v0.1.83
func GetValuesFromRedisSet ¶ added in v0.1.11
func GetVaultKvSecretEngines ¶
func GetVaultKvSecretPaths ¶
func GetVaultSecretValue ¶
func GetYamlStringKey ¶ added in v0.1.47
func ReadFileContentFromGitRepo ¶ added in v0.1.21
func ReadFileContentFromGitRepo(repo billy.Filesystem, filePath string) string
func ReadInlineYamlToObject ¶ added in v0.1.22
func ReadInlineYamlToObject(inlineYAML []byte, yamlObject interface{}) interface{}
func ReadVaultSecretEngines ¶
func ReadYamlKeyValuesFromFile ¶ added in v0.1.37
func ReadYamlToObject ¶ added in v0.1.20
func ReadYamlToObject(pathToYAML, fileExtension string, yamlObject interface{}) interface{}
func RemoveValueFromRedis ¶ added in v0.1.7
func RenderTemplateSurvey ¶ added in v0.1.46
func SendWebhookToTeams ¶ added in v0.1.10
func SendWebhookToTeams(webhook MsTeamsWebhook) bool
func SetRedisJSON ¶ added in v0.1.36
func SetRedisJSON(redisJSONHandler *rejson.Handler, jsonObject interface{}, jsonKey string)
func UnZipArchive ¶ added in v0.1.30
func UploadObjectToMinioBucket ¶ added in v0.1.83
func VerifyEnvVars ¶
func VerifyVaultEnvVars ¶ added in v0.1.9
Types ¶
type MsTeamsWebhook ¶ added in v0.1.10
type RenderSurvey ¶ added in v0.1.46
Click to show internal directories.
Click to hide internal directories.