reader

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigReader

func NewConfigReader(options ...config.Option) config.ConfigInterface

func WithCacheFileName

func WithCacheFileName(name string) config.Option

func WithCachedTokenInitialRetryDelay

func WithCachedTokenInitialRetryDelay(d time.Duration) config.Option

func WithCachedTokenLifetimeFraction

func WithCachedTokenLifetimeFraction(frac float64) config.Option

cached token tuning

func WithCachedTokenMaxRetryDelay

func WithCachedTokenMaxRetryDelay(d time.Duration) config.Option

func WithCachedTokenRetryMultiplier

func WithCachedTokenRetryMultiplier(mult float64) config.Option

func WithClientID

func WithClientID(clientID string) config.Option

func WithCustomEndpoint

func WithCustomEndpoint(customEndpoint string) config.Option

func WithDeferredClientFunc

func WithDeferredClientFunc(f func() (iampb.TokenExchangeServiceClient, error)) config.Option

deferred client function for service-account auth

func WithEndpointEnv

func WithEndpointEnv(endpointEnv string) config.Option

func WithFileRefreshPeriod

func WithFileRefreshPeriod(fileRefreshPeriod time.Duration) config.Option

func WithLogger

func WithLogger(logger *slog.Logger) config.Option

func WithNoBrowserOpen

func WithNoBrowserOpen(noBrowserOpen bool) config.Option

func WithNoFileCache

func WithNoFileCache(noFileCache bool) config.Option

func WithNoParentID

func WithNoParentID(noParentID bool) config.Option

func WithPath

func WithPath(path string) config.Option

func WithPreloadedConfig

func WithPreloadedConfig(cfg *config.Config) config.Option

func WithProfileEnv

func WithProfileEnv(profileEnv string) config.Option

func WithProfileName

func WithProfileName(profileName string) config.Option

func WithTokenEnv

func WithTokenEnv(tokenEnv string) config.Option

func WithTokenSafetyMargin

func WithTokenSafetyMargin(d time.Duration) config.Option

func WithWriter

func WithWriter(w io.Writer) config.Option

func WithoutBrowserOpen

func WithoutBrowserOpen() config.Option

browser/open control for federation flow

func WithoutEnvVars

func WithoutEnvVars() config.Option

func WithoutFileCache

func WithoutFileCache() config.Option

file cache control

func WithoutParentID

func WithoutParentID() config.Option

Types

This section is empty.

Jump to

Keyboard shortcuts

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