vault

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenEndpoint = "identity/oidc/token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*api.Client
}

func NewClient

func NewClient() (*Client, error)

NewClient returns a new vault client. Address and token initialization are handled internally. Any errors encountered during initialization (for instance due to lacking environment variables) are returned to the caller.

func (*Client) RequestJWT

func (c *Client) RequestJWT(r OIDCRole) (string, error)

type OIDCRole

type OIDCRole string

func (OIDCRole) Hash

func (v OIDCRole) Hash() (string, error)

Jump to

Keyboard shortcuts

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