Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockPG
- func (m *MockPG) AlterDefaultLoginRole(role, setRole string) error
- func (m *MockPG) CreateDB(dbname, username string) error
- func (m *MockPG) CreateExtension(db, extension string, logger logr.Logger) error
- func (m *MockPG) CreateGroupRole(role string) error
- func (m *MockPG) CreateSchema(db, role, schema string, logger logr.Logger) error
- func (m *MockPG) CreateUserRole(role, password string) (string, error)
- func (m *MockPG) DropDatabase(db string, logger logr.Logger) error
- func (m *MockPG) DropRole(role, newOwner, database string, logger logr.Logger) error
- func (m *MockPG) EXPECT() *MockPGMockRecorder
- func (m *MockPG) GetDefaultDatabase() string
- func (m *MockPG) GetUser() string
- func (m *MockPG) GrantRole(role, grantee string) error
- func (m *MockPG) RevokeRole(role, revoked string) error
- func (m *MockPG) SetSchemaPrivileges(privileges postgres.PostgresSchemaPrivileges, logger logr.Logger) error
- func (m *MockPG) UpdatePassword(role, password string) error
- type MockPGMockRecorder
- func (mr *MockPGMockRecorder) AlterDefaultLoginRole(role, setRole interface{}) *gomock.Call
- func (mr *MockPGMockRecorder) CreateDB(dbname, username interface{}) *gomock.Call
- func (mr *MockPGMockRecorder) CreateExtension(db, extension, logger interface{}) *gomock.Call
- func (mr *MockPGMockRecorder) CreateGroupRole(role interface{}) *gomock.Call
- func (mr *MockPGMockRecorder) CreateSchema(db, role, schema, logger interface{}) *gomock.Call
- func (mr *MockPGMockRecorder) CreateUserRole(role, password interface{}) *gomock.Call
- func (mr *MockPGMockRecorder) DropDatabase(db, logger interface{}) *gomock.Call
- func (mr *MockPGMockRecorder) DropRole(role, newOwner, database, logger interface{}) *gomock.Call
- func (mr *MockPGMockRecorder) GetDefaultDatabase() *gomock.Call
- func (mr *MockPGMockRecorder) GetUser() *gomock.Call
- func (mr *MockPGMockRecorder) GrantRole(role, grantee interface{}) *gomock.Call
- func (mr *MockPGMockRecorder) RevokeRole(role, revoked interface{}) *gomock.Call
- func (mr *MockPGMockRecorder) SetSchemaPrivileges(db, creator, role, schema, privs, createSchema, logger interface{}) *gomock.Call
- func (mr *MockPGMockRecorder) UpdatePassword(role, password interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPG ¶
type MockPG struct {
// contains filtered or unexported fields
}
MockPG is a mock of PG interface
func NewMockPG ¶
func NewMockPG(ctrl *gomock.Controller) *MockPG
NewMockPG creates a new mock instance
func (*MockPG) AlterDefaultLoginRole ¶
AlterDefaultLoginRole mocks base method
func (*MockPG) CreateExtension ¶
CreateExtension mocks base method
func (*MockPG) CreateGroupRole ¶
CreateGroupRole mocks base method
func (*MockPG) CreateSchema ¶
CreateSchema mocks base method
func (*MockPG) CreateUserRole ¶
CreateUserRole mocks base method
func (*MockPG) DropDatabase ¶
DropDatabase mocks base method
func (*MockPG) EXPECT ¶
func (m *MockPG) EXPECT() *MockPGMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPG) GetDefaultDatabase ¶
GetDefaultDatabase mocks base method
func (*MockPG) RevokeRole ¶
RevokeRole mocks base method
func (*MockPG) SetSchemaPrivileges ¶
func (m *MockPG) SetSchemaPrivileges(privileges postgres.PostgresSchemaPrivileges, logger logr.Logger) error
SetSchemaPrivileges mocks base method
func (*MockPG) UpdatePassword ¶
UpdatePassword mocks base method
type MockPGMockRecorder ¶
type MockPGMockRecorder struct {
// contains filtered or unexported fields
}
MockPGMockRecorder is the mock recorder for MockPG
func (*MockPGMockRecorder) AlterDefaultLoginRole ¶
func (mr *MockPGMockRecorder) AlterDefaultLoginRole(role, setRole interface{}) *gomock.Call
AlterDefaultLoginRole indicates an expected call of AlterDefaultLoginRole
func (*MockPGMockRecorder) CreateDB ¶
func (mr *MockPGMockRecorder) CreateDB(dbname, username interface{}) *gomock.Call
CreateDB indicates an expected call of CreateDB
func (*MockPGMockRecorder) CreateExtension ¶
func (mr *MockPGMockRecorder) CreateExtension(db, extension, logger interface{}) *gomock.Call
CreateExtension indicates an expected call of CreateExtension
func (*MockPGMockRecorder) CreateGroupRole ¶
func (mr *MockPGMockRecorder) CreateGroupRole(role interface{}) *gomock.Call
CreateGroupRole indicates an expected call of CreateGroupRole
func (*MockPGMockRecorder) CreateSchema ¶
func (mr *MockPGMockRecorder) CreateSchema(db, role, schema, logger interface{}) *gomock.Call
CreateSchema indicates an expected call of CreateSchema
func (*MockPGMockRecorder) CreateUserRole ¶
func (mr *MockPGMockRecorder) CreateUserRole(role, password interface{}) *gomock.Call
CreateUserRole indicates an expected call of CreateUserRole
func (*MockPGMockRecorder) DropDatabase ¶
func (mr *MockPGMockRecorder) DropDatabase(db, logger interface{}) *gomock.Call
DropDatabase indicates an expected call of DropDatabase
func (*MockPGMockRecorder) DropRole ¶
func (mr *MockPGMockRecorder) DropRole(role, newOwner, database, logger interface{}) *gomock.Call
DropRole indicates an expected call of DropRole
func (*MockPGMockRecorder) GetDefaultDatabase ¶
func (mr *MockPGMockRecorder) GetDefaultDatabase() *gomock.Call
GetDefaultDatabase indicates an expected call of GetDefaultDatabase
func (*MockPGMockRecorder) GetUser ¶
func (mr *MockPGMockRecorder) GetUser() *gomock.Call
GetUser indicates an expected call of GetUser
func (*MockPGMockRecorder) GrantRole ¶
func (mr *MockPGMockRecorder) GrantRole(role, grantee interface{}) *gomock.Call
GrantRole indicates an expected call of GrantRole
func (*MockPGMockRecorder) RevokeRole ¶
func (mr *MockPGMockRecorder) RevokeRole(role, revoked interface{}) *gomock.Call
RevokeRole indicates an expected call of RevokeRole
func (*MockPGMockRecorder) SetSchemaPrivileges ¶
func (mr *MockPGMockRecorder) SetSchemaPrivileges(db, creator, role, schema, privs, createSchema, logger interface{}) *gomock.Call
SetSchemaPrivileges indicates an expected call of SetSchemaPrivileges
func (*MockPGMockRecorder) UpdatePassword ¶
func (mr *MockPGMockRecorder) UpdatePassword(role, password interface{}) *gomock.Call
UpdatePassword indicates an expected call of UpdatePassword