proxy

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VaultCacheControlHeaderName = "X-Vault-Cache-Control"
)

Variables

This section is empty.

Functions

func New

func New(logger hclog.Logger, client *vault.Client, cacheConfig config.CacheConfig) *http.Server

New returns an unstarted HTTP server with health and proxy handlers.

Types

type Cache added in v0.6.0

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

func NewCache added in v0.6.0

func NewCache(cc config.CacheConfig) *Cache

func (*Cache) Get added in v0.6.0

func (c *Cache) Get(keyStr string) (data *CacheData, err error)

func (*Cache) Remove added in v0.6.0

func (c *Cache) Remove(keyStr string)

func (*Cache) Set added in v0.6.0

func (c *Cache) Set(keyStr string, data *CacheData)

type CacheData added in v0.6.0

type CacheData struct {
	StatusCode int
	Header     http.Header
	Body       []byte
}

type CacheKey added in v0.6.0

type CacheKey struct {
	Token       string
	Request     *http.Request
	RequestBody []byte
}

type CacheOptions added in v0.6.0

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

Jump to

Keyboard shortcuts

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