Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSService ¶
type AWSService interface { New() GetSecretValue(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error) }
type AWSServiceImpl ¶
type AWSServiceImpl struct { Region string // contains filtered or unexported fields }
func (*AWSServiceImpl) GetSecretValue ¶
func (awsService *AWSServiceImpl) GetSecretValue(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error)
func (*AWSServiceImpl) New ¶
func (awsService *AWSServiceImpl) New()
type AzureService ¶
type AzureServiceImpl ¶
type AzureServiceImpl struct {
// contains filtered or unexported fields
}
func (*AzureServiceImpl) GetSecret ¶
func (azService *AzureServiceImpl) GetSecret(ctx context.Context, vaultBaseURL string, secretName string, secretVersion string) (result keyvault.SecretBundle, err error)
func (*AzureServiceImpl) New ¶
func (azService *AzureServiceImpl) New()
type GoogleCloudService ¶
type GoogleCloudService interface { NewClient(context context.Context) error AccessSecretVersion( ctx context.Context, req *secretmanagerpb.AccessSecretVersionRequest, opts ...gax.CallOption, ) (*secretmanagerpb.AccessSecretVersionResponse, error) }
type GoogleCloudServiceImpl ¶
type GoogleCloudServiceImpl struct {
// contains filtered or unexported fields
}
func (*GoogleCloudServiceImpl) AccessSecretVersion ¶
func (service *GoogleCloudServiceImpl) AccessSecretVersion( ctx context.Context, req *secretmanagerpb.AccessSecretVersionRequest, opts ...gax.CallOption, ) (*secretmanagerpb.AccessSecretVersionResponse, error)
type MockAwsService ¶
type MockAwsService struct {
Region string
}
func (*MockAwsService) GetSecretValue ¶
func (awsService *MockAwsService) GetSecretValue(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error)
func (*MockAwsService) New ¶
func (awsService *MockAwsService) New()
type MockAzureService ¶
type MockAzureService struct {
IsFail bool
}
func (MockAzureService) GetSecret ¶
func (azService MockAzureService) GetSecret( ctx context.Context, vaultBaseURL string, secretName string, secretVersion string, ) (result keyvault.SecretBundle, err error)
func (MockAzureService) New ¶
func (azService MockAzureService) New()
type MockGoogleCloudService ¶
type MockGoogleCloudService struct {
IsFail bool
}
func (MockGoogleCloudService) AccessSecretVersion ¶
func (service MockGoogleCloudService) AccessSecretVersion(ctx context.Context, req *secretmanagerpb.AccessSecretVersionRequest, opts ...gax.CallOption) (*secretmanagerpb.AccessSecretVersionResponse, error)
type MockVaultService ¶
type MockVaultService struct {
Role string
}
type VaultService ¶
Click to show internal directories.
Click to hide internal directories.