cli

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package cli implements a way to log into vault for CLIs

Copyright 2023 Outreach Corporation. All Rights Reserved.

Description: Stores functions to ensure that the user is logged into vault

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, minTimeRemaining time.Duration) ([]byte, time.Time, error)

EnsureLoggedIn ensures that we are authenticated with Vault and have a valid token, returning the token and expiration date.

func IsLoggedIn added in v1.11.0

func IsLoggedIn(ctx context.Context, log logrus.FieldLogger, b *box.Config) ([]byte, time.Time, error)

IsLoggedIn returns a valid token and expiration time if auth lease is not expired

Types

This section is empty.

Jump to

Keyboard shortcuts

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