vault

package
v1.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v1.3.0

type Client struct {
	// contains filtered or unexported fields
}

func NewClient added in v1.3.0

func NewClient(address string, token string) (*Client, error)

func (Client) CreateToken added in v1.3.0

func (c Client) CreateToken(role *string, policies []string, ttl time.Duration, orphan bool) (*Token, error)

func (Client) LookupSelf added in v1.5.0

func (c Client) LookupSelf() error

type Token

type Token struct {
	Data struct {
		TTL int `json:"ttl"`
	} `json:"data"`
	Auth struct {
		ClientToken string `json:"client_token"`
	} `json:"auth"`
}

Token represents a token structure in Vault

Jump to

Keyboard shortcuts

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