cli

package
v1.11.0 Latest Latest
Warning

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

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

Documentation

Overview

Package cli implements a way to log into vault for CLIs

Copyright 2022 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) ([]byte, error)

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

func IsLoggedIn added in v1.11.0

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

IsLoggedIn returns a valid token 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