Documentation
¶
Overview ¶
Package ghait provides a simple interface for obtaining GitHub App Installation Tokens.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config interface {
GetAppID() int64
GetInstallationID() int64
GetProvider() string
GetKey() string
}
Config represents the configuration for the provider.
type FatalError ¶ added in v0.2.0
type FatalError struct{}
FatalError is returned when an error is considered fatal.
func (FatalError) Error ¶ added in v0.2.0
func (e FatalError) Error() string
type GHAIT ¶ added in v0.1.1
type GHAIT interface {
GetAppID() int64
GetInstallationID() int64
NewInstallationToken(ctx context.Context, installationID int64, options *github.InstallationTokenOptions) (*github.InstallationToken, error)
NewToken(ctx context.Context) (*github.InstallationToken, error)
NewTokenWithOptions(ctx context.Context, options *github.InstallationTokenOptions) (*github.InstallationToken, error)
}
GHAIT is the GitHub App Installation Token interface.
type TransientError ¶ added in v0.2.0
type TransientError struct{}
TransientError is returned when an error is considered transient.
func (TransientError) Error ¶ added in v0.2.0
func (e TransientError) Error() string
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
ghait
command
Package main is the entrypoint of the application
|
Package main is the entrypoint of the application |
|
Package provider offers functionality for token providers.
|
Package provider offers functionality for token providers. |
|
aws
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. |
|
file
Package file provides a file-based implementation of the ghait.Provider interface.
|
Package file provides a file-based implementation of the ghait.Provider interface. |
|
gcp
Package gcp provides a Google Cloud Platform (GCP) KMS signer implementation.
|
Package gcp provides a Google Cloud Platform (GCP) KMS signer implementation. |
|
stdin
Package stdin provides a stdin-based implementation of the ghait.Provider interface.
|
Package stdin provides a stdin-based implementation of the ghait.Provider interface. |
|
vault
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.