Documentation ¶
Index ¶
- type GitHubEnvPublicKeyGetter
- type GitHubEnvSecretCreator
- type GitHubEnvSecretGetter
- type GitHubOrgPublicKeyGetter
- type GitHubOrgSecretCreator
- type GitHubOrgSecretGetter
- type GitHubRepoGetter
- type GitHubRepoPublicKeyGetter
- type GitHubRepoSecretCreator
- type GitHubRepoSecretGetter
- type GitHubUserGetter
- type Injector
- type OnePasswordItemGetter
- type OnePasswordReader
- type SSMParameterGetter
- type SSMParameterPutter
- type STSCallerIdentityGetter
- type SecretsManagerSecretCreator
- type SecretsManagerSecretGetter
- type SecretsManagerSecretUpdater
- type WhoAmIer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubEnvPublicKeyGetter ¶
type GitHubEnvPublicKeyGetter func(ctx context.Context, repoID int, env string) (*github.PublicKey, error)
GitHubEnvPublicKeyGetter gets a public key that should be used for secret encryption.
func (GitHubEnvPublicKeyGetter) GetGitHubEnvPublicKey ¶
type GitHubEnvSecretCreator ¶
type GitHubEnvSecretCreator func(ctx context.Context, repoID int, env string, secret *github.EncryptedSecret) error
GitHubEnvSecretCreator creates or updates a single environment secret with an encrypted value.
func (GitHubEnvSecretCreator) CreateGitHubEnvSecret ¶
func (f GitHubEnvSecretCreator) CreateGitHubEnvSecret(ctx context.Context, repoID int, env string, secret *github.EncryptedSecret) error
type GitHubEnvSecretGetter ¶
type GitHubEnvSecretGetter func(ctx context.Context, repoID int, env, name string) (*github.Secret, error)
GitHubEnvSecretGetter gets a single environment secret without revealing its encrypted value.
func (GitHubEnvSecretGetter) GetGitHubEnvSecret ¶
type GitHubOrgPublicKeyGetter ¶
GitHubOrgPublicKeyGetter gets a public key that should be used for secret encryption.
func (GitHubOrgPublicKeyGetter) GetGitHubOrgPublicKey ¶
type GitHubOrgSecretCreator ¶
type GitHubOrgSecretCreator func(ctx context.Context, app services.GitHubApplication, org string, secret *github.EncryptedSecret) error
GitHubOrgSecretCreator creates or updates a single organization secret with an encrypted value.
func (GitHubOrgSecretCreator) CreateGitHubOrgSecret ¶
func (f GitHubOrgSecretCreator) CreateGitHubOrgSecret(ctx context.Context, app services.GitHubApplication, org string, secret *github.EncryptedSecret) error
type GitHubOrgSecretGetter ¶
type GitHubOrgSecretGetter func(ctx context.Context, app services.GitHubApplication, org, name string) (*github.Secret, error)
GitHubOrgSecretGetter gets a single organization secret without revealing its encrypted value.
func (GitHubOrgSecretGetter) GetGitHubOrgSecret ¶
func (f GitHubOrgSecretGetter) GetGitHubOrgSecret(ctx context.Context, app services.GitHubApplication, org, name string) (*github.Secret, error)
type GitHubRepoGetter ¶
GitHubRepoGetter fetches the GitHub repository.
func (GitHubRepoGetter) GetGitHubRepo ¶
func (f GitHubRepoGetter) GetGitHubRepo(ctx context.Context, owner, repo string) (*github.Repository, error)
type GitHubRepoPublicKeyGetter ¶
type GitHubRepoPublicKeyGetter func(ctx context.Context, owner, repo string) (*github.PublicKey, error)
GitHubRepoPublicKeyGetter gets a public key that should be used for secret encryption.
func (GitHubRepoPublicKeyGetter) GetGitHubRepoPublicKey ¶
type GitHubRepoSecretCreator ¶
type GitHubRepoSecretCreator func(ctx context.Context, app services.GitHubApplication, owner, repo string, secret *github.EncryptedSecret) error
GitHubRepoSecretCreator creates or updates a repository secret with an encrypted value.
func (GitHubRepoSecretCreator) CreateGitHubRepoSecret ¶
func (f GitHubRepoSecretCreator) CreateGitHubRepoSecret(ctx context.Context, app services.GitHubApplication, owner, repo string, secret *github.EncryptedSecret) error
type GitHubRepoSecretGetter ¶
type GitHubRepoSecretGetter func(ctx context.Context, app services.GitHubApplication, owner, repo, name string) (*github.Secret, error)
GitHubRepoSecretGetter gets a single repository secret without revealing its encrypted value.
func (GitHubRepoSecretGetter) GetGitHubRepoSecret ¶
func (f GitHubRepoSecretGetter) GetGitHubRepoSecret(ctx context.Context, app services.GitHubApplication, owner, repo, name string) (*github.Secret, error)
type GitHubUserGetter ¶
GitHubUserGetter fetches the authenticated GitHub user.
func (GitHubUserGetter) GetGitHubUser ¶
type OnePasswordItemGetter ¶
type OnePasswordItemGetter func(ctx context.Context, repository, name string) (*services.OnePasswordItem, error)
OnePasswordItemGetter gets the item from 1password.
func (OnePasswordItemGetter) GetOnePasswordItem ¶
func (f OnePasswordItemGetter) GetOnePasswordItem(ctx context.Context, repository, name string) (*services.OnePasswordItem, error)
type OnePasswordReader ¶
OnePasswordReader reads the secret from 1password.
func (OnePasswordReader) ReadOnePassword ¶
type SSMParameterGetter ¶
type SSMParameterGetter func(ctx context.Context, region string, in *ssm.GetParameterInput) (*ssm.GetParameterOutput, error)
func (SSMParameterGetter) SSMGetParameter ¶
func (f SSMParameterGetter) SSMGetParameter(ctx context.Context, region string, in *ssm.GetParameterInput) (*ssm.GetParameterOutput, error)
type SSMParameterPutter ¶
type SSMParameterPutter func(ctx context.Context, region string, in *ssm.PutParameterInput) (*ssm.PutParameterOutput, error)
func (SSMParameterPutter) SSMPutParameter ¶
func (f SSMParameterPutter) SSMPutParameter(ctx context.Context, region string, in *ssm.PutParameterInput) (*ssm.PutParameterOutput, error)
type STSCallerIdentityGetter ¶
type STSCallerIdentityGetter func(ctx context.Context) (*sts.GetCallerIdentityOutput, error)
func (STSCallerIdentityGetter) STSGetCallerIdentity ¶
func (f STSCallerIdentityGetter) STSGetCallerIdentity(ctx context.Context) (*sts.GetCallerIdentityOutput, error)
type SecretsManagerSecretCreator ¶
type SecretsManagerSecretCreator func(ctx context.Context, region string, in *secretsmanager.CreateSecretInput) (*secretsmanager.CreateSecretOutput, error)
func (SecretsManagerSecretCreator) SecretsManagerCreateSecret ¶
func (f SecretsManagerSecretCreator) SecretsManagerCreateSecret(ctx context.Context, region string, in *secretsmanager.CreateSecretInput) (*secretsmanager.CreateSecretOutput, error)
type SecretsManagerSecretGetter ¶
type SecretsManagerSecretGetter func(ctx context.Context, region string, in *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error)
func (SecretsManagerSecretGetter) SecretsManagerGetSecretValue ¶
func (f SecretsManagerSecretGetter) SecretsManagerGetSecretValue(ctx context.Context, region string, in *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error)
type SecretsManagerSecretUpdater ¶ added in v0.2.0
type SecretsManagerSecretUpdater func(ctx context.Context, region string, in *secretsmanager.UpdateSecretInput) (*secretsmanager.UpdateSecretOutput, error)
func (SecretsManagerSecretUpdater) SecretsManagerUpdateSecret ¶ added in v0.2.0
func (f SecretsManagerSecretUpdater) SecretsManagerUpdateSecret(ctx context.Context, region string, in *secretsmanager.UpdateSecretInput) (*secretsmanager.UpdateSecretOutput, error)