api

package
v0.0.0-...-967eb7f Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONMarshal

func JSONMarshal(t interface{}) ([]byte, error)

func LoginWithApprole

func LoginWithApprole(apiClient *api.Client, credentials map[string]string) (*api.Secret, error)

func LoginWithToken

func LoginWithToken(apiClient *api.Client, token string)

func LoginWithUserPass

func LoginWithUserPass(apiClient *api.Client, credentials map[string]string) (*api.Secret, error)

Types

type VaultClient

type VaultClient interface {
	QuerySecret(path string, field string, parameters ...string) (interface{}, error)
	QuerySecretMap(path string, parameters ...string) (map[string]interface{}, error)
}

func NewVaultClient

func NewVaultClient(vaultHost string, credentials map[string]string, dynamicPathVariable string) (VaultClient, error)

Jump to

Keyboard shortcuts

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