Documentation
¶
Overview ¶
Package providers defines the APIs for providers to detect their relevance and register themselves to furnish OIDC tokens within a given environment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Enabled ¶
Enabled checks whether any of the registered providers are enabled in this execution context.
Types ¶
type Interface ¶
type Interface interface {
// Enabled returns true if the provider is enabled.
Enabled(ctx context.Context) bool
// Provide returns an OIDC token scoped to the provided audience.
Provide(ctx context.Context, audience string) (string, error)
}
Interface is what providers need to implement to participate in furnishing OIDC tokens.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package filesystem defines an implementation of the providers.Interface that reads identity tokens from a well-known filesystem location.
|
Package filesystem defines an implementation of the providers.Interface that reads identity tokens from a well-known filesystem location. |
|
Package github defines a github implementation of the providers.Interface.
|
Package github defines a github implementation of the providers.Interface. |
|
Package google defines a google implementation of the providers.Interface.
|
Package google defines a google implementation of the providers.Interface. |
|
Package spiffe defines a SPIFFE/SPIRE implementation of the providers.Interface.
|
Package spiffe defines a SPIFFE/SPIRE implementation of the providers.Interface. |
Click to show internal directories.
Click to hide internal directories.