utils

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHttpClient

func DefaultHttpClient() *http.Client

func LoginWithCachedToken added in v1.17.0

func LoginWithCachedToken(vaultClient *api.Client) error

LoginWithCachedToken takes a VaultType interface and tries to log in with the previously cached token, And sets the token in the client

func ReadExistingToken added in v1.17.0

func ReadExistingToken() ([]byte, error)

func SetToken

func SetToken(vaultClient *api.Client, token string) error

SetToken attmepts to set the vault token on the vault api client and then attempts to write that token to a file to be used later If this method fails we do not want to stop the process

func VerboseToStdErr added in v1.12.0

func VerboseToStdErr(format string, message ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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