vault

package
v1.57.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package vault refreshes auth tokens

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureLoggedIn

func EnsureLoggedIn(ctx context.Context, log logrus.FieldLogger, b *box.Config, k kubernetes.Interface) error

EnsureLoggedIn ensures that we are authenticated with Vault and have a valid token

func IsLoggedIn added in v1.51.0

func IsLoggedIn(ctx context.Context, log logrus.FieldLogger, b *box.Config) error

IsLoggedIn returns Vault token expire date if the token is valid

func NewClient

func NewClient(ctx context.Context, b *box.Config) (*vault.Client, error)

NewClient creates a new vault client

Types

This section is empty.

Jump to

Keyboard shortcuts

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