fake

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package fake is a fake provider for testing purposes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	// contains filtered or unexported fields
}

Fake is a fake KMS provider

func Empty

func Empty() *Fake

Empty creates an empty (as in does nothing) fake provider

func New

func New(encrypt Operation, decrypt Operation) *Fake

New creates a custom fake provider

func (*Fake) Decrypt

func (f *Fake) Decrypt(ciphertext []byte) ([]byte, error)

Decrypt is a fake decryption operation

func (*Fake) Encrypt

func (f *Fake) Encrypt(plaintext []byte) ([]byte, error)

Encrypt is a fake encryption operation

type KeyVaultAPIClient

type KeyVaultAPIClient struct {
}

KeyVaultAPIClient is a fake KeyVault API client provider

func (KeyVaultAPIClient) BackupKey

func (KeyVaultAPIClient) BackupKey(ctx context.Context, vaultBaseURL string, keyName string) (result keyvault.BackupKeyResult, err error)

BackupKey unused

func (KeyVaultAPIClient) BackupSecret

func (KeyVaultAPIClient) BackupSecret(ctx context.Context, vaultBaseURL string, secretName string) (result keyvault.BackupSecretResult, err error)

BackupSecret unused

func (KeyVaultAPIClient) CreateCertificate

func (KeyVaultAPIClient) CreateCertificate(ctx context.Context, vaultBaseURL string, certificateName string, parameters keyvault.CertificateCreateParameters) (result keyvault.CertificateOperation, err error)

CreateCertificate unused

func (KeyVaultAPIClient) CreateKey

func (KeyVaultAPIClient) CreateKey(ctx context.Context, vaultBaseURL string, keyName string, parameters keyvault.KeyCreateParameters) (result keyvault.KeyBundle, err error)

CreateKey unused

func (KeyVaultAPIClient) Decrypt

func (KeyVaultAPIClient) Decrypt(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters keyvault.KeyOperationsParameters) (result keyvault.KeyOperationResult, err error)

Decrypt unused

func (KeyVaultAPIClient) DeleteCertificate

func (KeyVaultAPIClient) DeleteCertificate(ctx context.Context, vaultBaseURL string, certificateName string) (result keyvault.DeletedCertificateBundle, err error)

DeleteCertificate unused

func (KeyVaultAPIClient) DeleteCertificateContacts

func (KeyVaultAPIClient) DeleteCertificateContacts(ctx context.Context, vaultBaseURL string) (result keyvault.Contacts, err error)

DeleteCertificateContacts unused

func (KeyVaultAPIClient) DeleteCertificateIssuer

func (KeyVaultAPIClient) DeleteCertificateIssuer(ctx context.Context, vaultBaseURL string, issuerName string) (result keyvault.IssuerBundle, err error)

DeleteCertificateIssuer unused

func (KeyVaultAPIClient) DeleteCertificateOperation

func (KeyVaultAPIClient) DeleteCertificateOperation(ctx context.Context, vaultBaseURL string, certificateName string) (result keyvault.CertificateOperation, err error)

DeleteCertificateOperation unused

func (KeyVaultAPIClient) DeleteKey

func (KeyVaultAPIClient) DeleteKey(ctx context.Context, vaultBaseURL string, keyName string) (result keyvault.DeletedKeyBundle, err error)

DeleteKey unused

func (KeyVaultAPIClient) DeleteSasDefinition

func (KeyVaultAPIClient) DeleteSasDefinition(ctx context.Context, vaultBaseURL string, storageAccountName string, sasDefinitionName string) (result keyvault.SasDefinitionBundle, err error)

DeleteSasDefinition unused

func (KeyVaultAPIClient) DeleteSecret

func (KeyVaultAPIClient) DeleteSecret(ctx context.Context, vaultBaseURL string, secretName string) (result keyvault.DeletedSecretBundle, err error)

DeleteSecret unused

func (KeyVaultAPIClient) DeleteStorageAccount

func (KeyVaultAPIClient) DeleteStorageAccount(ctx context.Context, vaultBaseURL string, storageAccountName string) (result keyvault.StorageBundle, err error)

DeleteStorageAccount unused

func (KeyVaultAPIClient) Encrypt

func (KeyVaultAPIClient) Encrypt(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters keyvault.KeyOperationsParameters) (result keyvault.KeyOperationResult, err error)

Encrypt unused

func (KeyVaultAPIClient) GetCertificate

func (KeyVaultAPIClient) GetCertificate(ctx context.Context, vaultBaseURL string, certificateName string, certificateVersion string) (result keyvault.CertificateBundle, err error)

GetCertificate unused

func (KeyVaultAPIClient) GetCertificateContacts

func (KeyVaultAPIClient) GetCertificateContacts(ctx context.Context, vaultBaseURL string) (result keyvault.Contacts, err error)

GetCertificateContacts unused

func (KeyVaultAPIClient) GetCertificateIssuer

func (KeyVaultAPIClient) GetCertificateIssuer(ctx context.Context, vaultBaseURL string, issuerName string) (result keyvault.IssuerBundle, err error)

GetCertificateIssuer unused

func (KeyVaultAPIClient) GetCertificateIssuers

func (KeyVaultAPIClient) GetCertificateIssuers(ctx context.Context, vaultBaseURL string, maxresults *int32) (result keyvault.CertificateIssuerListResultPage, err error)

GetCertificateIssuers unused

func (KeyVaultAPIClient) GetCertificateOperation

func (KeyVaultAPIClient) GetCertificateOperation(ctx context.Context, vaultBaseURL string, certificateName string) (result keyvault.CertificateOperation, err error)

GetCertificateOperation unused

func (KeyVaultAPIClient) GetCertificatePolicy

func (KeyVaultAPIClient) GetCertificatePolicy(ctx context.Context, vaultBaseURL string, certificateName string) (result keyvault.CertificatePolicy, err error)

GetCertificatePolicy unused

func (KeyVaultAPIClient) GetCertificateVersions

func (KeyVaultAPIClient) GetCertificateVersions(ctx context.Context, vaultBaseURL string, certificateName string, maxresults *int32) (result keyvault.CertificateListResultPage, err error)

GetCertificateVersions unused

func (KeyVaultAPIClient) GetCertificates

func (KeyVaultAPIClient) GetCertificates(ctx context.Context, vaultBaseURL string, maxresults *int32) (result keyvault.CertificateListResultPage, err error)

GetCertificates unused

func (KeyVaultAPIClient) GetDeletedCertificate

func (KeyVaultAPIClient) GetDeletedCertificate(ctx context.Context, vaultBaseURL string, certificateName string) (result keyvault.DeletedCertificateBundle, err error)

GetDeletedCertificate unused

func (KeyVaultAPIClient) GetDeletedCertificates

func (KeyVaultAPIClient) GetDeletedCertificates(ctx context.Context, vaultBaseURL string, maxresults *int32) (result keyvault.DeletedCertificateListResultPage, err error)

GetDeletedCertificates unused

func (KeyVaultAPIClient) GetDeletedKey

func (KeyVaultAPIClient) GetDeletedKey(ctx context.Context, vaultBaseURL string, keyName string) (result keyvault.DeletedKeyBundle, err error)

GetDeletedKey unused

func (KeyVaultAPIClient) GetDeletedKeys

func (KeyVaultAPIClient) GetDeletedKeys(ctx context.Context, vaultBaseURL string, maxresults *int32) (result keyvault.DeletedKeyListResultPage, err error)

GetDeletedKeys unused

func (KeyVaultAPIClient) GetDeletedSecret

func (KeyVaultAPIClient) GetDeletedSecret(ctx context.Context, vaultBaseURL string, secretName string) (result keyvault.DeletedSecretBundle, err error)

GetDeletedSecret unused

func (KeyVaultAPIClient) GetDeletedSecrets

func (KeyVaultAPIClient) GetDeletedSecrets(ctx context.Context, vaultBaseURL string, maxresults *int32) (result keyvault.DeletedSecretListResultPage, err error)

GetDeletedSecrets unused

func (KeyVaultAPIClient) GetKey

func (KeyVaultAPIClient) GetKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string) (result keyvault.KeyBundle, err error)

GetKey unused

func (KeyVaultAPIClient) GetKeyVersions

func (KeyVaultAPIClient) GetKeyVersions(ctx context.Context, vaultBaseURL string, keyName string, maxresults *int32) (result keyvault.KeyListResultPage, err error)

GetKeyVersions unused

func (KeyVaultAPIClient) GetKeys

func (KeyVaultAPIClient) GetKeys(ctx context.Context, vaultBaseURL string, maxresults *int32) (result keyvault.KeyListResultPage, err error)

GetKeys unused

func (KeyVaultAPIClient) GetSasDefinition

func (KeyVaultAPIClient) GetSasDefinition(ctx context.Context, vaultBaseURL string, storageAccountName string, sasDefinitionName string) (result keyvault.SasDefinitionBundle, err error)

GetSasDefinition unused

func (KeyVaultAPIClient) GetSasDefinitions

func (KeyVaultAPIClient) GetSasDefinitions(ctx context.Context, vaultBaseURL string, storageAccountName string, maxresults *int32) (result keyvault.SasDefinitionListResultPage, err error)

GetSasDefinitions unused

func (KeyVaultAPIClient) GetSecret

func (KeyVaultAPIClient) GetSecret(ctx context.Context, vaultBaseURL string, secretName string, secretVersion string) (result keyvault.SecretBundle, err error)

GetSecret unused

func (KeyVaultAPIClient) GetSecretVersions

func (KeyVaultAPIClient) GetSecretVersions(ctx context.Context, vaultBaseURL string, secretName string, maxresults *int32) (result keyvault.SecretListResultPage, err error)

GetSecretVersions unused

func (KeyVaultAPIClient) GetSecrets

func (KeyVaultAPIClient) GetSecrets(ctx context.Context, vaultBaseURL string, maxresults *int32) (result keyvault.SecretListResultPage, err error)

GetSecrets unused

func (KeyVaultAPIClient) GetStorageAccount

func (KeyVaultAPIClient) GetStorageAccount(ctx context.Context, vaultBaseURL string, storageAccountName string) (result keyvault.StorageBundle, err error)

GetStorageAccount unused

func (KeyVaultAPIClient) GetStorageAccounts

func (KeyVaultAPIClient) GetStorageAccounts(ctx context.Context, vaultBaseURL string, maxresults *int32) (result keyvault.StorageListResultPage, err error)

GetStorageAccounts unused

func (KeyVaultAPIClient) ImportCertificate

func (KeyVaultAPIClient) ImportCertificate(ctx context.Context, vaultBaseURL string, certificateName string, parameters keyvault.CertificateImportParameters) (result keyvault.CertificateBundle, err error)

ImportCertificate unused

func (KeyVaultAPIClient) ImportKey

func (KeyVaultAPIClient) ImportKey(ctx context.Context, vaultBaseURL string, keyName string, parameters keyvault.KeyImportParameters) (result keyvault.KeyBundle, err error)

ImportKey unused

func (KeyVaultAPIClient) MergeCertificate

func (KeyVaultAPIClient) MergeCertificate(ctx context.Context, vaultBaseURL string, certificateName string, parameters keyvault.CertificateMergeParameters) (result keyvault.CertificateBundle, err error)

MergeCertificate unused

func (KeyVaultAPIClient) PurgeDeletedCertificate

func (KeyVaultAPIClient) PurgeDeletedCertificate(ctx context.Context, vaultBaseURL string, certificateName string) (result autorest.Response, err error)

PurgeDeletedCertificate unused

func (KeyVaultAPIClient) PurgeDeletedKey

func (KeyVaultAPIClient) PurgeDeletedKey(ctx context.Context, vaultBaseURL string, keyName string) (result autorest.Response, err error)

PurgeDeletedKey unused

func (KeyVaultAPIClient) PurgeDeletedSecret

func (KeyVaultAPIClient) PurgeDeletedSecret(ctx context.Context, vaultBaseURL string, secretName string) (result autorest.Response, err error)

PurgeDeletedSecret unused

func (KeyVaultAPIClient) RecoverDeletedCertificate

func (KeyVaultAPIClient) RecoverDeletedCertificate(ctx context.Context, vaultBaseURL string, certificateName string) (result keyvault.CertificateBundle, err error)

RecoverDeletedCertificate unused

func (KeyVaultAPIClient) RecoverDeletedKey

func (KeyVaultAPIClient) RecoverDeletedKey(ctx context.Context, vaultBaseURL string, keyName string) (result keyvault.KeyBundle, err error)

RecoverDeletedKey unused

func (KeyVaultAPIClient) RecoverDeletedSecret

func (KeyVaultAPIClient) RecoverDeletedSecret(ctx context.Context, vaultBaseURL string, secretName string) (result keyvault.SecretBundle, err error)

RecoverDeletedSecret unused

func (KeyVaultAPIClient) RegenerateStorageAccountKey

func (KeyVaultAPIClient) RegenerateStorageAccountKey(ctx context.Context, vaultBaseURL string, storageAccountName string, parameters keyvault.StorageAccountRegenerteKeyParameters) (result keyvault.StorageBundle, err error)

RegenerateStorageAccountKey unused

func (KeyVaultAPIClient) RestoreKey

func (KeyVaultAPIClient) RestoreKey(ctx context.Context, vaultBaseURL string, parameters keyvault.KeyRestoreParameters) (result keyvault.KeyBundle, err error)

RestoreKey unused

func (KeyVaultAPIClient) RestoreSecret

func (KeyVaultAPIClient) RestoreSecret(ctx context.Context, vaultBaseURL string, parameters keyvault.SecretRestoreParameters) (result keyvault.SecretBundle, err error)

RestoreSecret unused

func (KeyVaultAPIClient) SetCertificateContacts

func (KeyVaultAPIClient) SetCertificateContacts(ctx context.Context, vaultBaseURL string, contacts keyvault.Contacts) (result keyvault.Contacts, err error)

SetCertificateContacts unused

func (KeyVaultAPIClient) SetCertificateIssuer

func (KeyVaultAPIClient) SetCertificateIssuer(ctx context.Context, vaultBaseURL string, issuerName string, parameter keyvault.CertificateIssuerSetParameters) (result keyvault.IssuerBundle, err error)

SetCertificateIssuer unused

func (KeyVaultAPIClient) SetSasDefinition

func (KeyVaultAPIClient) SetSasDefinition(ctx context.Context, vaultBaseURL string, storageAccountName string, sasDefinitionName string, parameters keyvault.SasDefinitionCreateParameters) (result keyvault.SasDefinitionBundle, err error)

SetSasDefinition unused

func (KeyVaultAPIClient) SetSecret

func (KeyVaultAPIClient) SetSecret(ctx context.Context, vaultBaseURL string, secretName string, parameters keyvault.SecretSetParameters) (result keyvault.SecretBundle, err error)

SetSecret unused

func (KeyVaultAPIClient) SetStorageAccount

func (KeyVaultAPIClient) SetStorageAccount(ctx context.Context, vaultBaseURL string, storageAccountName string, parameters keyvault.StorageAccountCreateParameters) (result keyvault.StorageBundle, err error)

SetStorageAccount unused

func (KeyVaultAPIClient) Sign

func (KeyVaultAPIClient) Sign(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters keyvault.KeySignParameters) (result keyvault.KeyOperationResult, err error)

Sign unused

func (KeyVaultAPIClient) UnwrapKey

func (KeyVaultAPIClient) UnwrapKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters keyvault.KeyOperationsParameters) (result keyvault.KeyOperationResult, err error)

UnwrapKey unused

func (KeyVaultAPIClient) UpdateCertificate

func (KeyVaultAPIClient) UpdateCertificate(ctx context.Context, vaultBaseURL string, certificateName string, certificateVersion string, parameters keyvault.CertificateUpdateParameters) (result keyvault.CertificateBundle, err error)

UpdateCertificate unused

func (KeyVaultAPIClient) UpdateCertificateIssuer

func (KeyVaultAPIClient) UpdateCertificateIssuer(ctx context.Context, vaultBaseURL string, issuerName string, parameter keyvault.CertificateIssuerUpdateParameters) (result keyvault.IssuerBundle, err error)

UpdateCertificateIssuer unused

func (KeyVaultAPIClient) UpdateCertificateOperation

func (KeyVaultAPIClient) UpdateCertificateOperation(ctx context.Context, vaultBaseURL string, certificateName string, certificateOperation keyvault.CertificateOperationUpdateParameter) (result keyvault.CertificateOperation, err error)

UpdateCertificateOperation unused

func (KeyVaultAPIClient) UpdateCertificatePolicy

func (KeyVaultAPIClient) UpdateCertificatePolicy(ctx context.Context, vaultBaseURL string, certificateName string, certificatePolicy keyvault.CertificatePolicy) (result keyvault.CertificatePolicy, err error)

UpdateCertificatePolicy unused

func (KeyVaultAPIClient) UpdateKey

func (KeyVaultAPIClient) UpdateKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters keyvault.KeyUpdateParameters) (result keyvault.KeyBundle, err error)

UpdateKey unused

func (KeyVaultAPIClient) UpdateSasDefinition

func (KeyVaultAPIClient) UpdateSasDefinition(ctx context.Context, vaultBaseURL string, storageAccountName string, sasDefinitionName string, parameters keyvault.SasDefinitionUpdateParameters) (result keyvault.SasDefinitionBundle, err error)

UpdateSasDefinition unused

func (KeyVaultAPIClient) UpdateSecret

func (KeyVaultAPIClient) UpdateSecret(ctx context.Context, vaultBaseURL string, secretName string, secretVersion string, parameters keyvault.SecretUpdateParameters) (result keyvault.SecretBundle, err error)

UpdateSecret unused

func (KeyVaultAPIClient) UpdateStorageAccount

func (KeyVaultAPIClient) UpdateStorageAccount(ctx context.Context, vaultBaseURL string, storageAccountName string, parameters keyvault.StorageAccountUpdateParameters) (result keyvault.StorageBundle, err error)

UpdateStorageAccount unused

func (KeyVaultAPIClient) Verify

func (KeyVaultAPIClient) Verify(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters keyvault.KeyVerifyParameters) (result keyvault.KeyVerifyResult, err error)

Verify unused

func (KeyVaultAPIClient) WrapKey

func (KeyVaultAPIClient) WrapKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string, parameters keyvault.KeyOperationsParameters) (result keyvault.KeyOperationResult, err error)

WrapKey unused

type Operation

type Operation func(input []byte) ([]byte, error)

Operation represents a Fake operation

Jump to

Keyboard shortcuts

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