utils

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the current version of Velero, set by the go linker's -X flag at build time.
	Version string
	// GitSHA is the actual commit that is being built, set by the go linker's -X flag at build time.
	GitSHA string
)

Functions

func Authenticate

func Authenticate(pc **gophercloud.ProviderClient, service string, config map[string]string, log logrus.FieldLogger) error

Authenticate to OpenStack and write client result to **pc

func GetEnv

func GetEnv(key, fallback string) string

GetEnv gets value from environment variable or fallbacks to default value This snippet is from https://stackoverflow.com/a/40326580/3323419

func ReplaceAccount added in v0.5.0

func ReplaceAccount(account, path string, prefixes []string) string

ReplaceAccount replaces an endpoint account part with a new account value

Types

This section is empty.

Jump to

Keyboard shortcuts

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