utilities

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: UPL-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempFileWithData

func CreateTempFileWithData(data []byte) (string, error)

CreateTempFileWithData used to create temp cloud-creds utilized for object store access

func GetComponent

func GetComponent(filePath string) (string, error)

GetComponent retrieves component info from file

func GetEnvWithDefault

func GetEnvWithDefault(key, defaultValue string) string

GetEnvWithDefault retrieves env variable with default value

func ReadTempCredsFile

func ReadTempCredsFile(filePath, credentialProfile string) (string, string, error)

ReadTempCredsFile reads object store credentials from a temporary file for registration purpose

func WaitRandom

func WaitRandom(message, timeout string, log *zap.SugaredLogger) (int, error)

WaitRandom generates a random number between min and max

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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