Documentation
¶
Index ¶
- type BlobClient
- type BlobClient_Download_Call
- type BlobClient_Exists_Call
- type BlobClient_Expecter
- type BlobClient_Upload_Call
- type KeyVaultClient
- func (_m *KeyVaultClient) EXPECT() *KeyVaultClient_Expecter
- func (_m *KeyVaultClient) GetCertificate(ctx context.Context, certificateName string, version string) (*x509.Certificate, error)
- func (_m *KeyVaultClient) GetKey(ctx context.Context, keyName string, version string) (jwk.Key, error)
- func (_m *KeyVaultClient) GetSecret(ctx context.Context, secretName string, version string) (*string, error)
- func (_m *KeyVaultClient) ImportCertificate(ctx context.Context, certificateName string, certificate *x509.Certificate, ...) error
- func (_m *KeyVaultClient) ImportKey(ctx context.Context, keyName string, key jwk.Key) error
- func (_m *KeyVaultClient) SetSecret(ctx context.Context, secretName string, value string) error
- type KeyVaultClient_Expecter
- func (_e *KeyVaultClient_Expecter) GetCertificate(ctx interface{}, certificateName interface{}, version interface{}) *KeyVaultClient_GetCertificate_Call
- func (_e *KeyVaultClient_Expecter) GetKey(ctx interface{}, keyName interface{}, version interface{}) *KeyVaultClient_GetKey_Call
- func (_e *KeyVaultClient_Expecter) GetSecret(ctx interface{}, secretName interface{}, version interface{}) *KeyVaultClient_GetSecret_Call
- func (_e *KeyVaultClient_Expecter) ImportCertificate(ctx interface{}, certificateName interface{}, certificate interface{}, ...) *KeyVaultClient_ImportCertificate_Call
- func (_e *KeyVaultClient_Expecter) ImportKey(ctx interface{}, keyName interface{}, key interface{}) *KeyVaultClient_ImportKey_Call
- func (_e *KeyVaultClient_Expecter) SetSecret(ctx interface{}, secretName interface{}, value interface{}) *KeyVaultClient_SetSecret_Call
- type KeyVaultClient_GetCertificate_Call
- type KeyVaultClient_GetKey_Call
- type KeyVaultClient_GetSecret_Call
- type KeyVaultClient_ImportCertificate_Call
- type KeyVaultClient_ImportKey_Call
- type KeyVaultClient_SetSecret_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobClient ¶
BlobClient is an autogenerated mock type for the BlobClient type
func NewBlobClient ¶
func NewBlobClient(t mockConstructorTestingTNewBlobClient) *BlobClient
NewBlobClient creates a new instance of BlobClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BlobClient) Download ¶
func (_m *BlobClient) Download(ctx context.Context) ([]byte, error)
Download provides a mock function with given fields: ctx
func (*BlobClient) EXPECT ¶
func (_m *BlobClient) EXPECT() *BlobClient_Expecter
type BlobClient_Download_Call ¶
BlobClient_Download_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Download'
func (*BlobClient_Download_Call) Return ¶
func (_c *BlobClient_Download_Call) Return(_a0 []byte, _a1 error) *BlobClient_Download_Call
func (*BlobClient_Download_Call) Run ¶
func (_c *BlobClient_Download_Call) Run(run func(ctx context.Context)) *BlobClient_Download_Call
type BlobClient_Exists_Call ¶
BlobClient_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
func (*BlobClient_Exists_Call) Return ¶
func (_c *BlobClient_Exists_Call) Return(_a0 bool, _a1 error) *BlobClient_Exists_Call
func (*BlobClient_Exists_Call) Run ¶
func (_c *BlobClient_Exists_Call) Run(run func(ctx context.Context)) *BlobClient_Exists_Call
type BlobClient_Expecter ¶
type BlobClient_Expecter struct {
// contains filtered or unexported fields
}
func (*BlobClient_Expecter) Download ¶
func (_e *BlobClient_Expecter) Download(ctx interface{}) *BlobClient_Download_Call
Download is a helper method to define mock.On call
- ctx context.Context
func (*BlobClient_Expecter) Exists ¶
func (_e *BlobClient_Expecter) Exists(ctx interface{}) *BlobClient_Exists_Call
Exists is a helper method to define mock.On call
- ctx context.Context
func (*BlobClient_Expecter) Upload ¶
func (_e *BlobClient_Expecter) Upload(ctx interface{}, buffer interface{}) *BlobClient_Upload_Call
Upload is a helper method to define mock.On call
- ctx context.Context
- buffer []byte
type BlobClient_Upload_Call ¶
BlobClient_Upload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upload'
func (*BlobClient_Upload_Call) Return ¶
func (_c *BlobClient_Upload_Call) Return(_a0 error) *BlobClient_Upload_Call
func (*BlobClient_Upload_Call) Run ¶
func (_c *BlobClient_Upload_Call) Run(run func(ctx context.Context, buffer []byte)) *BlobClient_Upload_Call
type KeyVaultClient ¶
KeyVaultClient is an autogenerated mock type for the KeyVaultClient type
func NewKeyVaultClient ¶
func NewKeyVaultClient(t mockConstructorTestingTNewKeyVaultClient) *KeyVaultClient
NewKeyVaultClient creates a new instance of KeyVaultClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*KeyVaultClient) EXPECT ¶
func (_m *KeyVaultClient) EXPECT() *KeyVaultClient_Expecter
func (*KeyVaultClient) GetCertificate ¶
func (_m *KeyVaultClient) GetCertificate(ctx context.Context, certificateName string, version string) (*x509.Certificate, error)
GetCertificate provides a mock function with given fields: ctx, certificateName, version
func (*KeyVaultClient) GetKey ¶
func (_m *KeyVaultClient) GetKey(ctx context.Context, keyName string, version string) (jwk.Key, error)
GetKey provides a mock function with given fields: ctx, keyName, version
func (*KeyVaultClient) GetSecret ¶
func (_m *KeyVaultClient) GetSecret(ctx context.Context, secretName string, version string) (*string, error)
GetSecret provides a mock function with given fields: ctx, secretName, version
func (*KeyVaultClient) ImportCertificate ¶
func (_m *KeyVaultClient) ImportCertificate(ctx context.Context, certificateName string, certificate *x509.Certificate, key *rsa.PrivateKey) error
ImportCertificate provides a mock function with given fields: ctx, certificateName, certificate, key
type KeyVaultClient_Expecter ¶
type KeyVaultClient_Expecter struct {
// contains filtered or unexported fields
}
func (*KeyVaultClient_Expecter) GetCertificate ¶
func (_e *KeyVaultClient_Expecter) GetCertificate(ctx interface{}, certificateName interface{}, version interface{}) *KeyVaultClient_GetCertificate_Call
GetCertificate is a helper method to define mock.On call
- ctx context.Context
- certificateName string
- version string
func (*KeyVaultClient_Expecter) GetKey ¶
func (_e *KeyVaultClient_Expecter) GetKey(ctx interface{}, keyName interface{}, version interface{}) *KeyVaultClient_GetKey_Call
GetKey is a helper method to define mock.On call
- ctx context.Context
- keyName string
- version string
func (*KeyVaultClient_Expecter) GetSecret ¶
func (_e *KeyVaultClient_Expecter) GetSecret(ctx interface{}, secretName interface{}, version interface{}) *KeyVaultClient_GetSecret_Call
GetSecret is a helper method to define mock.On call
- ctx context.Context
- secretName string
- version string
func (*KeyVaultClient_Expecter) ImportCertificate ¶
func (_e *KeyVaultClient_Expecter) ImportCertificate(ctx interface{}, certificateName interface{}, certificate interface{}, key interface{}) *KeyVaultClient_ImportCertificate_Call
ImportCertificate is a helper method to define mock.On call
- ctx context.Context
- certificateName string
- certificate *x509.Certificate
- key *rsa.PrivateKey
func (*KeyVaultClient_Expecter) ImportKey ¶
func (_e *KeyVaultClient_Expecter) ImportKey(ctx interface{}, keyName interface{}, key interface{}) *KeyVaultClient_ImportKey_Call
ImportKey is a helper method to define mock.On call
- ctx context.Context
- keyName string
- key jwk.Key
func (*KeyVaultClient_Expecter) SetSecret ¶
func (_e *KeyVaultClient_Expecter) SetSecret(ctx interface{}, secretName interface{}, value interface{}) *KeyVaultClient_SetSecret_Call
SetSecret is a helper method to define mock.On call
- ctx context.Context
- secretName string
- value string
type KeyVaultClient_GetCertificate_Call ¶
KeyVaultClient_GetCertificate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCertificate'
func (*KeyVaultClient_GetCertificate_Call) Return ¶
func (_c *KeyVaultClient_GetCertificate_Call) Return(_a0 *x509.Certificate, _a1 error) *KeyVaultClient_GetCertificate_Call
func (*KeyVaultClient_GetCertificate_Call) Run ¶
func (_c *KeyVaultClient_GetCertificate_Call) Run(run func(ctx context.Context, certificateName string, version string)) *KeyVaultClient_GetCertificate_Call
type KeyVaultClient_GetKey_Call ¶
KeyVaultClient_GetKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKey'
func (*KeyVaultClient_GetKey_Call) Return ¶
func (_c *KeyVaultClient_GetKey_Call) Return(_a0 jwk.Key, _a1 error) *KeyVaultClient_GetKey_Call
func (*KeyVaultClient_GetKey_Call) Run ¶
func (_c *KeyVaultClient_GetKey_Call) Run(run func(ctx context.Context, keyName string, version string)) *KeyVaultClient_GetKey_Call
type KeyVaultClient_GetSecret_Call ¶
KeyVaultClient_GetSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSecret'
func (*KeyVaultClient_GetSecret_Call) Return ¶
func (_c *KeyVaultClient_GetSecret_Call) Return(_a0 *string, _a1 error) *KeyVaultClient_GetSecret_Call
func (*KeyVaultClient_GetSecret_Call) Run ¶
func (_c *KeyVaultClient_GetSecret_Call) Run(run func(ctx context.Context, secretName string, version string)) *KeyVaultClient_GetSecret_Call
type KeyVaultClient_ImportCertificate_Call ¶
KeyVaultClient_ImportCertificate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImportCertificate'
func (*KeyVaultClient_ImportCertificate_Call) Return ¶
func (_c *KeyVaultClient_ImportCertificate_Call) Return(_a0 error) *KeyVaultClient_ImportCertificate_Call
func (*KeyVaultClient_ImportCertificate_Call) Run ¶
func (_c *KeyVaultClient_ImportCertificate_Call) Run(run func(ctx context.Context, certificateName string, certificate *x509.Certificate, key *rsa.PrivateKey)) *KeyVaultClient_ImportCertificate_Call
type KeyVaultClient_ImportKey_Call ¶
KeyVaultClient_ImportKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImportKey'
func (*KeyVaultClient_ImportKey_Call) Return ¶
func (_c *KeyVaultClient_ImportKey_Call) Return(_a0 error) *KeyVaultClient_ImportKey_Call
func (*KeyVaultClient_ImportKey_Call) Run ¶
func (_c *KeyVaultClient_ImportKey_Call) Run(run func(ctx context.Context, keyName string, key jwk.Key)) *KeyVaultClient_ImportKey_Call
type KeyVaultClient_SetSecret_Call ¶
KeyVaultClient_SetSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSecret'
func (*KeyVaultClient_SetSecret_Call) Return ¶
func (_c *KeyVaultClient_SetSecret_Call) Return(_a0 error) *KeyVaultClient_SetSecret_Call
func (*KeyVaultClient_SetSecret_Call) Run ¶
func (_c *KeyVaultClient_SetSecret_Call) Run(run func(ctx context.Context, secretName string, value string)) *KeyVaultClient_SetSecret_Call