Documentation ¶
Overview ¶
Package jwk represents the jwk daemon fetching logic and the interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFetchAthenzJWK "Fetch athenz json web key error" ErrFetchAthenzJWK = errors.New("Fetch athenz json web key error") )
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon interface { Start(ctx context.Context) <-chan error Update(context.Context) error GetProvider() Provider }
Daemon represents the daemon to retrieve jwk from Athenz.
type Option ¶
type Option func(*jwkd) error
Option represents a functional option
func WithAthenzJwksURL ¶
WithAthenzJwksURL returns an Athenz JWK URL path functional option
func WithHTTPClient ¶
WithHTTPClient returns a HTTPClient functional option
func WithRefreshPeriod ¶
WithRefreshPeriod returns a RefreshPeriod functional option
func WithRetryDelay ¶
WithRetryDelay returns an RetryDelay functional option
Click to show internal directories.
Click to hide internal directories.