utils

package
v0.0.0-...-b58264c Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckExistingToken

func CheckExistingToken(vaultClient *api.Client) error

CheckExistingToken takes a VaultType interface and logs in, while writting the config file And setting the token in the client

func DefaultHttpClient

func DefaultHttpClient() *http.Client

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

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