credentialhelpercache

package
v0.0.0-...-273bd4e Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultCacheDuration specifies the default TTL for cache entries.
	DefaultCacheDuration = 30 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CachingCredentialHelper

type CachingCredentialHelper interface {
	credentialhelper.CredentialHelper

	// Close closes the Credential Helper and releases all associated resources.
	Close() error
}

CachingCredentialHelper represents a `CredentialHelper` that internally caches credentials.

Use `New()` to create an instance.

func New

New wraps a `CredentialHelper` with caching.

type Options

type Options struct {
	// TTL specifies the time to cache credentials before invoking
	// the Credential Helper again.
	//
	// If not set, TTL defaults to `DefaultCacheDuration`.
	TTL time.Duration
}

Options represents options for the Credential Helper cache.

Jump to

Keyboard shortcuts

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