utils

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertYAMLtoJSONHelper

func ConvertYAMLtoJSONHelper(i interface{}) interface{}

ConvertYAMLtoJSONHelper converts the yaml to json recursively

func CopyFile

func CopyFile(source, target string)

func GenID added in v0.6.1

func GenID() string

func GenUniqID

func GenUniqID() string

func GenerateX509Cert added in v1.1.0

func GenerateX509Cert() ([]byte, *rsa.PrivateKey, *rsa.PublicKey, error)

func JSONToYAMLConvert

func JSONToYAMLConvert(cnfg interface{}) []byte

func LoadUserProjectConfig

func LoadUserProjectConfig(path string) *v1.AtlasProject

LoadUserProjectConfig load configuration into object

func RandomName added in v1.3.0

func RandomName(base string) string

func ReadInYAMLFileAndConvert

func ReadInYAMLFileAndConvert(pathToYamlFile string, cnfg interface{}) interface{}

ReadInYAMLFileAndConvert reads in the yaml file given by the path given

func SaveToFile

func SaveToFile(path string, data []byte) error

func UserSecretPassword added in v1.4.0

func UserSecretPassword() string

Types

type Secrets added in v0.6.1

type Secrets map[string]string

func GetSecretEnvOrActrc added in v0.6.1

func GetSecretEnvOrActrc(keys []string) Secrets

func GetSecretsFromActrc added in v0.6.1

func GetSecretsFromActrc() (Secrets, error)

GetSecretsFromActrc act use .actrc file for define the secrets, we can use the same file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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