utils

package
v2.2.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 15 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

func GenID() string

func GenUniqID

func GenUniqID() string

func GenerateX509Cert

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

func JSONToYAMLConvert

func JSONToYAMLConvert(cnfg interface{}) []byte

func LoadUserProjectConfig

func LoadUserProjectConfig(path string) *akov2.AtlasProject

LoadUserProjectConfig load configuration into object

func RandomName

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

func UserSecretPassword() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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