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 WithAthenzURL ¶
WithAthenzURL returns an AthenzURL functional option
func WithErrRetryInterval ¶
WithErrRetryInterval returns an ErrRetryInterval functional option
func WithHTTPClient ¶
WithHTTPClient returns a HTTPClient functional option
func WithRefreshDuration ¶
WithRefreshDuration returns a RefreshDuration functional option
Click to show internal directories.
Click to hide internal directories.