mock

package
v0.0.6-beta Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: github.com/coinbase/baseca/db/sqlc (interfaces: Store)

Generated by this command:

mockgen --build_flags=--mod=mod -package mock -destination db/mock/store.go github.com/coinbase/baseca/db/sqlc Store

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) CreateProvisionerAccount

func (m *MockStore) CreateProvisionerAccount(arg0 context.Context, arg1 db.CreateProvisionerAccountParams) (*db.Provisioner, error)

CreateProvisionerAccount mocks base method.

func (*MockStore) CreateServiceAccount

func (m *MockStore) CreateServiceAccount(arg0 context.Context, arg1 db.CreateServiceAccountParams) (*db.Account, error)

CreateServiceAccount mocks base method.

func (*MockStore) CreateUser

func (m *MockStore) CreateUser(arg0 context.Context, arg1 db.CreateUserParams) (*db.User, error)

CreateUser mocks base method.

func (*MockStore) DeleteInstanceIdentityDocument

func (m *MockStore) DeleteInstanceIdentityDocument(arg0 context.Context, arg1 uuid.UUID) error

DeleteInstanceIdentityDocument mocks base method.

func (*MockStore) DeleteProvisionerAccount

func (m *MockStore) DeleteProvisionerAccount(arg0 context.Context, arg1 uuid.UUID) error

DeleteProvisionerAccount mocks base method.

func (*MockStore) DeleteServiceAccount

func (m *MockStore) DeleteServiceAccount(arg0 context.Context, arg1 uuid.UUID) error

DeleteServiceAccount mocks base method.

func (*MockStore) DeleteUser

func (m *MockStore) DeleteUser(arg0 context.Context, arg1 string) error

DeleteUser mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStore) GetCertificate

func (m *MockStore) GetCertificate(arg0 context.Context, arg1 string) (*db.Certificate, error)

GetCertificate mocks base method.

func (*MockStore) GetInstanceIdentityDocument

func (m *MockStore) GetInstanceIdentityDocument(arg0 context.Context, arg1 uuid.UUID) (*db.AwsAttestation, error)

GetInstanceIdentityDocument mocks base method.

func (*MockStore) GetProvisionerUUID

func (m *MockStore) GetProvisionerUUID(arg0 context.Context, arg1 uuid.UUID) (*db.Provisioner, error)

GetProvisionerUUID mocks base method.

func (*MockStore) GetServiceAccountByMetadata

func (m *MockStore) GetServiceAccountByMetadata(arg0 context.Context, arg1 db.GetServiceAccountByMetadataParams) ([]*db.Account, error)

GetServiceAccountByMetadata mocks base method.

func (*MockStore) GetServiceAccountBySAN

func (m *MockStore) GetServiceAccountBySAN(arg0 context.Context, arg1 []string) ([]*db.Account, error)

GetServiceAccountBySAN mocks base method.

func (*MockStore) GetServiceAccounts

func (m *MockStore) GetServiceAccounts(arg0 context.Context, arg1 string) ([]*db.Account, error)

GetServiceAccounts mocks base method.

func (*MockStore) GetServiceUUID

func (m *MockStore) GetServiceUUID(arg0 context.Context, arg1 uuid.UUID) (*db.Account, error)

GetServiceUUID mocks base method.

func (*MockStore) GetSignedCertificateByMetadata

func (m *MockStore) GetSignedCertificateByMetadata(arg0 context.Context, arg1 db.GetSignedCertificateByMetadataParams) ([]*db.Certificate, error)

GetSignedCertificateByMetadata mocks base method.

func (*MockStore) GetUser

func (m *MockStore) GetUser(arg0 context.Context, arg1 string) (*db.User, error)

GetUser mocks base method.

func (*MockStore) ListCertificateSubjectAlternativeName

func (m *MockStore) ListCertificateSubjectAlternativeName(arg0 context.Context, arg1 db.ListCertificateSubjectAlternativeNameParams) ([]*db.Certificate, error)

ListCertificateSubjectAlternativeName mocks base method.

func (*MockStore) ListCertificates

func (m *MockStore) ListCertificates(arg0 context.Context, arg1 db.ListCertificatesParams) ([]*db.Certificate, error)

ListCertificates mocks base method.

func (*MockStore) ListProvisionerAccounts

func (m *MockStore) ListProvisionerAccounts(arg0 context.Context, arg1 db.ListProvisionerAccountsParams) ([]*db.Provisioner, error)

ListProvisionerAccounts mocks base method.

func (*MockStore) ListServiceAccounts

func (m *MockStore) ListServiceAccounts(arg0 context.Context, arg1 db.ListServiceAccountsParams) ([]*db.Account, error)

ListServiceAccounts mocks base method.

func (*MockStore) ListUsers

func (m *MockStore) ListUsers(arg0 context.Context, arg1 db.ListUsersParams) ([]*db.User, error)

ListUsers mocks base method.

func (*MockStore) ListValidCertificateAuthorityFromSubordinateCA

func (m *MockStore) ListValidCertificateAuthorityFromSubordinateCA(arg0 context.Context, arg1 db.ListValidCertificateAuthorityFromSubordinateCAParams) ([]any, error)

ListValidCertificateAuthorityFromSubordinateCA mocks base method.

func (*MockStore) LogCertificate

func (m *MockStore) LogCertificate(arg0 context.Context, arg1 db.LogCertificateParams) (*db.Certificate, error)

LogCertificate mocks base method.

func (*MockStore) RevokeIssuedCertificateSerialNumber

func (m *MockStore) RevokeIssuedCertificateSerialNumber(arg0 context.Context, arg1 db.RevokeIssuedCertificateSerialNumberParams) error

RevokeIssuedCertificateSerialNumber mocks base method.

func (*MockStore) StoreInstanceIdentityDocument

func (m *MockStore) StoreInstanceIdentityDocument(arg0 context.Context, arg1 db.StoreInstanceIdentityDocumentParams) (*db.AwsAttestation, error)

StoreInstanceIdentityDocument mocks base method.

func (*MockStore) TxCreateProvisionerAccount

TxCreateProvisionerAccount mocks base method.

func (*MockStore) TxCreateServiceAccount

TxCreateServiceAccount mocks base method.

func (*MockStore) TxDeleteProvisionerAccount

func (m *MockStore) TxDeleteProvisionerAccount(arg0 context.Context, arg1 uuid.UUID) error

TxDeleteProvisionerAccount mocks base method.

func (*MockStore) TxDeleteServiceAccount

func (m *MockStore) TxDeleteServiceAccount(arg0 context.Context, arg1 uuid.UUID) error

TxDeleteServiceAccount mocks base method.

func (*MockStore) TxUpdateServiceAccount

func (m *MockStore) TxUpdateServiceAccount(arg0 context.Context, arg1 db.Account, arg2 types.NodeAttestation) (*db.Account, error)

TxUpdateServiceAccount mocks base method.

func (*MockStore) UpdateInstanceIdentityNodeAttestor

func (m *MockStore) UpdateInstanceIdentityNodeAttestor(arg0 context.Context, arg1 db.UpdateInstanceIdentityNodeAttestorParams) (*db.Account, error)

UpdateInstanceIdentityNodeAttestor mocks base method.

func (*MockStore) UpdateServiceAccount

func (m *MockStore) UpdateServiceAccount(arg0 context.Context, arg1 db.UpdateServiceAccountParams) (*db.Account, error)

UpdateServiceAccount mocks base method.

func (*MockStore) UpdateUserAuthentication

func (m *MockStore) UpdateUserAuthentication(arg0 context.Context, arg1 db.UpdateUserAuthenticationParams) (*db.User, error)

UpdateUserAuthentication mocks base method.

func (*MockStore) UpdateUserPermission

func (m *MockStore) UpdateUserPermission(arg0 context.Context, arg1 db.UpdateUserPermissionParams) (*db.User, error)

UpdateUserPermission mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) CreateProvisionerAccount

func (mr *MockStoreMockRecorder) CreateProvisionerAccount(arg0, arg1 any) *gomock.Call

CreateProvisionerAccount indicates an expected call of CreateProvisionerAccount.

func (*MockStoreMockRecorder) CreateServiceAccount

func (mr *MockStoreMockRecorder) CreateServiceAccount(arg0, arg1 any) *gomock.Call

CreateServiceAccount indicates an expected call of CreateServiceAccount.

func (*MockStoreMockRecorder) CreateUser

func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 any) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockStoreMockRecorder) DeleteInstanceIdentityDocument

func (mr *MockStoreMockRecorder) DeleteInstanceIdentityDocument(arg0, arg1 any) *gomock.Call

DeleteInstanceIdentityDocument indicates an expected call of DeleteInstanceIdentityDocument.

func (*MockStoreMockRecorder) DeleteProvisionerAccount

func (mr *MockStoreMockRecorder) DeleteProvisionerAccount(arg0, arg1 any) *gomock.Call

DeleteProvisionerAccount indicates an expected call of DeleteProvisionerAccount.

func (*MockStoreMockRecorder) DeleteServiceAccount

func (mr *MockStoreMockRecorder) DeleteServiceAccount(arg0, arg1 any) *gomock.Call

DeleteServiceAccount indicates an expected call of DeleteServiceAccount.

func (*MockStoreMockRecorder) DeleteUser

func (mr *MockStoreMockRecorder) DeleteUser(arg0, arg1 any) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockStoreMockRecorder) GetCertificate

func (mr *MockStoreMockRecorder) GetCertificate(arg0, arg1 any) *gomock.Call

GetCertificate indicates an expected call of GetCertificate.

func (*MockStoreMockRecorder) GetInstanceIdentityDocument

func (mr *MockStoreMockRecorder) GetInstanceIdentityDocument(arg0, arg1 any) *gomock.Call

GetInstanceIdentityDocument indicates an expected call of GetInstanceIdentityDocument.

func (*MockStoreMockRecorder) GetProvisionerUUID

func (mr *MockStoreMockRecorder) GetProvisionerUUID(arg0, arg1 any) *gomock.Call

GetProvisionerUUID indicates an expected call of GetProvisionerUUID.

func (*MockStoreMockRecorder) GetServiceAccountByMetadata

func (mr *MockStoreMockRecorder) GetServiceAccountByMetadata(arg0, arg1 any) *gomock.Call

GetServiceAccountByMetadata indicates an expected call of GetServiceAccountByMetadata.

func (*MockStoreMockRecorder) GetServiceAccountBySAN

func (mr *MockStoreMockRecorder) GetServiceAccountBySAN(arg0, arg1 any) *gomock.Call

GetServiceAccountBySAN indicates an expected call of GetServiceAccountBySAN.

func (*MockStoreMockRecorder) GetServiceAccounts

func (mr *MockStoreMockRecorder) GetServiceAccounts(arg0, arg1 any) *gomock.Call

GetServiceAccounts indicates an expected call of GetServiceAccounts.

func (*MockStoreMockRecorder) GetServiceUUID

func (mr *MockStoreMockRecorder) GetServiceUUID(arg0, arg1 any) *gomock.Call

GetServiceUUID indicates an expected call of GetServiceUUID.

func (*MockStoreMockRecorder) GetSignedCertificateByMetadata

func (mr *MockStoreMockRecorder) GetSignedCertificateByMetadata(arg0, arg1 any) *gomock.Call

GetSignedCertificateByMetadata indicates an expected call of GetSignedCertificateByMetadata.

func (*MockStoreMockRecorder) GetUser

func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 any) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockStoreMockRecorder) ListCertificateSubjectAlternativeName

func (mr *MockStoreMockRecorder) ListCertificateSubjectAlternativeName(arg0, arg1 any) *gomock.Call

ListCertificateSubjectAlternativeName indicates an expected call of ListCertificateSubjectAlternativeName.

func (*MockStoreMockRecorder) ListCertificates

func (mr *MockStoreMockRecorder) ListCertificates(arg0, arg1 any) *gomock.Call

ListCertificates indicates an expected call of ListCertificates.

func (*MockStoreMockRecorder) ListProvisionerAccounts

func (mr *MockStoreMockRecorder) ListProvisionerAccounts(arg0, arg1 any) *gomock.Call

ListProvisionerAccounts indicates an expected call of ListProvisionerAccounts.

func (*MockStoreMockRecorder) ListServiceAccounts

func (mr *MockStoreMockRecorder) ListServiceAccounts(arg0, arg1 any) *gomock.Call

ListServiceAccounts indicates an expected call of ListServiceAccounts.

func (*MockStoreMockRecorder) ListUsers

func (mr *MockStoreMockRecorder) ListUsers(arg0, arg1 any) *gomock.Call

ListUsers indicates an expected call of ListUsers.

func (*MockStoreMockRecorder) ListValidCertificateAuthorityFromSubordinateCA

func (mr *MockStoreMockRecorder) ListValidCertificateAuthorityFromSubordinateCA(arg0, arg1 any) *gomock.Call

ListValidCertificateAuthorityFromSubordinateCA indicates an expected call of ListValidCertificateAuthorityFromSubordinateCA.

func (*MockStoreMockRecorder) LogCertificate

func (mr *MockStoreMockRecorder) LogCertificate(arg0, arg1 any) *gomock.Call

LogCertificate indicates an expected call of LogCertificate.

func (*MockStoreMockRecorder) RevokeIssuedCertificateSerialNumber

func (mr *MockStoreMockRecorder) RevokeIssuedCertificateSerialNumber(arg0, arg1 any) *gomock.Call

RevokeIssuedCertificateSerialNumber indicates an expected call of RevokeIssuedCertificateSerialNumber.

func (*MockStoreMockRecorder) StoreInstanceIdentityDocument

func (mr *MockStoreMockRecorder) StoreInstanceIdentityDocument(arg0, arg1 any) *gomock.Call

StoreInstanceIdentityDocument indicates an expected call of StoreInstanceIdentityDocument.

func (*MockStoreMockRecorder) TxCreateProvisionerAccount

func (mr *MockStoreMockRecorder) TxCreateProvisionerAccount(arg0, arg1, arg2 any) *gomock.Call

TxCreateProvisionerAccount indicates an expected call of TxCreateProvisionerAccount.

func (*MockStoreMockRecorder) TxCreateServiceAccount

func (mr *MockStoreMockRecorder) TxCreateServiceAccount(arg0, arg1, arg2 any) *gomock.Call

TxCreateServiceAccount indicates an expected call of TxCreateServiceAccount.

func (*MockStoreMockRecorder) TxDeleteProvisionerAccount

func (mr *MockStoreMockRecorder) TxDeleteProvisionerAccount(arg0, arg1 any) *gomock.Call

TxDeleteProvisionerAccount indicates an expected call of TxDeleteProvisionerAccount.

func (*MockStoreMockRecorder) TxDeleteServiceAccount

func (mr *MockStoreMockRecorder) TxDeleteServiceAccount(arg0, arg1 any) *gomock.Call

TxDeleteServiceAccount indicates an expected call of TxDeleteServiceAccount.

func (*MockStoreMockRecorder) TxUpdateServiceAccount

func (mr *MockStoreMockRecorder) TxUpdateServiceAccount(arg0, arg1, arg2 any) *gomock.Call

TxUpdateServiceAccount indicates an expected call of TxUpdateServiceAccount.

func (*MockStoreMockRecorder) UpdateInstanceIdentityNodeAttestor

func (mr *MockStoreMockRecorder) UpdateInstanceIdentityNodeAttestor(arg0, arg1 any) *gomock.Call

UpdateInstanceIdentityNodeAttestor indicates an expected call of UpdateInstanceIdentityNodeAttestor.

func (*MockStoreMockRecorder) UpdateServiceAccount

func (mr *MockStoreMockRecorder) UpdateServiceAccount(arg0, arg1 any) *gomock.Call

UpdateServiceAccount indicates an expected call of UpdateServiceAccount.

func (*MockStoreMockRecorder) UpdateUserAuthentication

func (mr *MockStoreMockRecorder) UpdateUserAuthentication(arg0, arg1 any) *gomock.Call

UpdateUserAuthentication indicates an expected call of UpdateUserAuthentication.

func (*MockStoreMockRecorder) UpdateUserPermission

func (mr *MockStoreMockRecorder) UpdateUserPermission(arg0, arg1 any) *gomock.Call

UpdateUserPermission indicates an expected call of UpdateUserPermission.

Jump to

Keyboard shortcuts

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