service

package
v0.0.0-...-a3b0a12 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 14 Imported by: 0

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 (*AWSServiceImpl) New

func (awsService *AWSServiceImpl) New()

type AzureService

type AzureService interface {
	New()
	GetSecret(ctx context.Context, vaultBaseURL string, secretName string, secretVersion string) (result keyvault.SecretBundle, err error)
}

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)

func (*GoogleCloudServiceImpl) NewClient

func (service *GoogleCloudServiceImpl) NewClient(context context.Context) error

type MockAwsService

type MockAwsService struct {
	Region string
}

func (*MockAwsService) GetSecretValue

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)

func (MockGoogleCloudService) NewClient

func (service MockGoogleCloudService) NewClient(context context.Context) error

type MockVaultService

type MockVaultService struct {
	Role string
}

func (MockVaultService) New

func (service MockVaultService) New() (*api.Client, error)

func (MockVaultService) Read

func (service MockVaultService) Read(path string) (*api.Secret, error)

type VaultService

type VaultService interface {
	New() (*api.Client, error)
	Read(path string) (*api.Secret, error)
}

type VaultServiceImpl

type VaultServiceImpl struct {
	Role   string
	Client *api.Client
}

func (*VaultServiceImpl) New

func (vaultService *VaultServiceImpl) New() (*api.Client, error)

func (*VaultServiceImpl) Read

func (vaultService *VaultServiceImpl) Read(path string) (*api.Secret, error)

Jump to

Keyboard shortcuts

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