mock

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func (f GitHubEnvPublicKeyGetter) GetGitHubEnvPublicKey(ctx context.Context, repoID int, env string) (*github.PublicKey, error)

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

func (f GitHubEnvSecretGetter) GetGitHubEnvSecret(ctx context.Context, repoID int, env, name string) (*github.Secret, error)

type GitHubOrgPublicKeyGetter

type GitHubOrgPublicKeyGetter func(ctx context.Context, org string) (*github.PublicKey, error)

GitHubOrgPublicKeyGetter gets a public key that should be used for secret encryption.

func (GitHubOrgPublicKeyGetter) GetGitHubOrgPublicKey

func (f GitHubOrgPublicKeyGetter) GetGitHubOrgPublicKey(ctx context.Context, org string) (*github.PublicKey, error)

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

type GitHubRepoGetter func(ctx context.Context, owner, repo string) (*github.Repository, error)

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

func (f GitHubRepoPublicKeyGetter) GetGitHubRepoPublicKey(ctx context.Context, owner, repo string) (*github.PublicKey, error)

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

type GitHubUserGetter func(ctx context.Context) (*github.User, error)

GitHubUserGetter fetches the authenticated GitHub user.

func (GitHubUserGetter) GetGitHubUser

func (f GitHubUserGetter) GetGitHubUser(ctx context.Context) (*github.User, error)

type Injector

type Injector func(ctx context.Context, template string) ([]byte, error)

Injector inject the secrets into the template.

func (Injector) Inject

func (f Injector) Inject(ctx context.Context, template string) ([]byte, error)

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

type OnePasswordReader func(ctx context.Context, uri string) ([]byte, error)

OnePasswordReader reads the secret from 1password.

func (OnePasswordReader) ReadOnePassword

func (f OnePasswordReader) ReadOnePassword(ctx context.Context, uri string) ([]byte, error)

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

type SecretsManagerSecretGetter

type SecretsManagerSecretGetter func(ctx context.Context, region string, in *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error)

func (SecretsManagerSecretGetter) SecretsManagerGetSecretValue

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

type WhoAmIer

type WhoAmIer func(ctx context.Context) (*services.OnePasswordUser, error)

WhoAmIer returns the information about a signed-in account.

func (WhoAmIer) WhoAmI

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL