Documentation
¶
Overview ¶
Package provider offers functionality for token providers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedProvider = errors.New("unsupported provider")
ErrUnsupportedProvider is returned when an unsupported provider is requested.
Functions ¶
Types ¶
type Provider ¶
type Provider interface {
// Check checks the validity of the signer, returning an error if the signer
// is invalid or misconfigured.
Check() error
// Sign signs the given claims and returns a JWT token string, as specified
// by [jwt.Token.SignedString]
Sign(claims jwt.Claims) (string, error)
}
Provider is the interface that must be implemented by all token providers.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package aws provides the Controller struct that wraps AWS services and provides S3 and SSM functionality with context and logging support.
|
Package aws provides the Controller struct that wraps AWS services and provides S3 and SSM functionality with context and logging support. |
|
Package file provides a file-based implementation of the ghait.Provider interface.
|
Package file provides a file-based implementation of the ghait.Provider interface. |
|
Package gcp provides a Google Cloud Platform (GCP) KMS signer implementation.
|
Package gcp provides a Google Cloud Platform (GCP) KMS signer implementation. |
|
Package stdin provides a stdin-based implementation of the ghait.Provider interface.
|
Package stdin provides a stdin-based implementation of the ghait.Provider interface. |
|
Package vault provides a ghinstallation.Signer implementation using HashiCorp Vault.
|
Package vault provides a ghinstallation.Signer implementation using HashiCorp Vault. |
Click to show internal directories.
Click to hide internal directories.