mocks

package
v0.0.0-...-9ffa3d9 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobClient

type BlobClient struct {
	mock.Mock
}

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

func (*BlobClient) Exists

func (_m *BlobClient) Exists(ctx context.Context) (bool, error)

Exists provides a mock function with given fields: ctx

func (*BlobClient) Upload

func (_m *BlobClient) Upload(ctx context.Context, buffer []byte) error

Upload provides a mock function with given fields: ctx, buffer

type BlobClient_Download_Call

type BlobClient_Download_Call struct {
	*mock.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 (*BlobClient_Download_Call) Run

type BlobClient_Exists_Call

type BlobClient_Exists_Call struct {
	*mock.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 (*BlobClient_Exists_Call) Run

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

type BlobClient_Upload_Call struct {
	*mock.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 (*BlobClient_Upload_Call) Run

func (_c *BlobClient_Upload_Call) Run(run func(ctx context.Context, buffer []byte)) *BlobClient_Upload_Call

type KeyVaultClient

type KeyVaultClient struct {
	mock.Mock
}

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 (*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

func (*KeyVaultClient) ImportKey

func (_m *KeyVaultClient) ImportKey(ctx context.Context, keyName string, key jwk.Key) error

ImportKey provides a mock function with given fields: ctx, keyName, key

func (*KeyVaultClient) SetSecret

func (_m *KeyVaultClient) SetSecret(ctx context.Context, secretName string, value string) error

SetSecret provides a mock function with given fields: ctx, secretName, value

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

type KeyVaultClient_GetCertificate_Call struct {
	*mock.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 (*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

type KeyVaultClient_GetKey_Call struct {
	*mock.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 (*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

type KeyVaultClient_GetSecret_Call struct {
	*mock.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 (*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

type KeyVaultClient_ImportCertificate_Call struct {
	*mock.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 (*KeyVaultClient_ImportCertificate_Call) Run

type KeyVaultClient_ImportKey_Call

type KeyVaultClient_ImportKey_Call struct {
	*mock.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 (*KeyVaultClient_ImportKey_Call) Run

type KeyVaultClient_SetSecret_Call

type KeyVaultClient_SetSecret_Call struct {
	*mock.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 (*KeyVaultClient_SetSecret_Call) Run

func (_c *KeyVaultClient_SetSecret_Call) Run(run func(ctx context.Context, secretName string, value string)) *KeyVaultClient_SetSecret_Call

Jump to

Keyboard shortcuts

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