Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockStardogAPI
- func (m *MockStardogAPI) AddRole(ctx context.Context, name string) error
- func (m *MockStardogAPI) AddRolePermission(ctx context.Context, name string, permission stardogapi.Permission) error
- func (m *MockStardogAPI) AddUser(ctx context.Context, name, password string) error
- func (m *MockStardogAPI) CreateDatabase(ctx context.Context, name string, options map[string]string) error
- func (m *MockStardogAPI) DeleteRole(ctx context.Context, name string) error
- func (m *MockStardogAPI) DeleteRolePermission(ctx context.Context, name string, permission stardogapi.Permission) error
- func (m *MockStardogAPI) DeleteUser(ctx context.Context, name string) error
- func (m *MockStardogAPI) DropDatabase(ctx context.Context, name string) error
- func (m *MockStardogAPI) EXPECT() *MockStardogAPIMockRecorder
- func (m *MockStardogAPI) GetRolePermissions(ctx context.Context, name string) ([]stardogapi.Permission, error)
- func (m *MockStardogAPI) GetRoles(ctx context.Context) ([]string, error)
- func (m *MockStardogAPI) GetUser(ctx context.Context, name string) (stardogapi.User, error)
- func (m *MockStardogAPI) GetUserRoles(ctx context.Context, name string) ([]string, error)
- func (m *MockStardogAPI) ListDatabases(ctx context.Context) ([]string, error)
- func (m *MockStardogAPI) SetUserRoles(ctx context.Context, name string, roles []string) error
- type MockStardogAPIMockRecorder
- func (mr *MockStardogAPIMockRecorder) AddRole(ctx, name interface{}) *gomock.Call
- func (mr *MockStardogAPIMockRecorder) AddRolePermission(ctx, name, permission interface{}) *gomock.Call
- func (mr *MockStardogAPIMockRecorder) AddUser(ctx, name, password interface{}) *gomock.Call
- func (mr *MockStardogAPIMockRecorder) CreateDatabase(ctx, name, options interface{}) *gomock.Call
- func (mr *MockStardogAPIMockRecorder) DeleteRole(ctx, name interface{}) *gomock.Call
- func (mr *MockStardogAPIMockRecorder) DeleteRolePermission(ctx, name, permission interface{}) *gomock.Call
- func (mr *MockStardogAPIMockRecorder) DeleteUser(ctx, name interface{}) *gomock.Call
- func (mr *MockStardogAPIMockRecorder) DropDatabase(ctx, name interface{}) *gomock.Call
- func (mr *MockStardogAPIMockRecorder) GetRolePermissions(ctx, name interface{}) *gomock.Call
- func (mr *MockStardogAPIMockRecorder) GetRoles(ctx interface{}) *gomock.Call
- func (mr *MockStardogAPIMockRecorder) GetUser(ctx, name interface{}) *gomock.Call
- func (mr *MockStardogAPIMockRecorder) GetUserRoles(ctx, name interface{}) *gomock.Call
- func (mr *MockStardogAPIMockRecorder) ListDatabases(ctx interface{}) *gomock.Call
- func (mr *MockStardogAPIMockRecorder) SetUserRoles(ctx, name, roles interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStardogAPI ¶
type MockStardogAPI struct {
// contains filtered or unexported fields
}
MockStardogAPI is a mock of StardogAPI interface.
func NewMockStardogAPI ¶
func NewMockStardogAPI(ctrl *gomock.Controller) *MockStardogAPI
NewMockStardogAPI creates a new mock instance.
func (*MockStardogAPI) AddRole ¶
func (m *MockStardogAPI) AddRole(ctx context.Context, name string) error
AddRole mocks base method.
func (*MockStardogAPI) AddRolePermission ¶
func (m *MockStardogAPI) AddRolePermission(ctx context.Context, name string, permission stardogapi.Permission) error
AddRolePermission mocks base method.
func (*MockStardogAPI) AddUser ¶
func (m *MockStardogAPI) AddUser(ctx context.Context, name, password string) error
AddUser mocks base method.
func (*MockStardogAPI) CreateDatabase ¶
func (m *MockStardogAPI) CreateDatabase(ctx context.Context, name string, options map[string]string) error
CreateDatabase mocks base method.
func (*MockStardogAPI) DeleteRole ¶
func (m *MockStardogAPI) DeleteRole(ctx context.Context, name string) error
DeleteRole mocks base method.
func (*MockStardogAPI) DeleteRolePermission ¶
func (m *MockStardogAPI) DeleteRolePermission(ctx context.Context, name string, permission stardogapi.Permission) error
DeleteRolePermission mocks base method.
func (*MockStardogAPI) DeleteUser ¶
func (m *MockStardogAPI) DeleteUser(ctx context.Context, name string) error
DeleteUser mocks base method.
func (*MockStardogAPI) DropDatabase ¶
func (m *MockStardogAPI) DropDatabase(ctx context.Context, name string) error
DropDatabase mocks base method.
func (*MockStardogAPI) EXPECT ¶
func (m *MockStardogAPI) EXPECT() *MockStardogAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStardogAPI) GetRolePermissions ¶
func (m *MockStardogAPI) GetRolePermissions(ctx context.Context, name string) ([]stardogapi.Permission, error)
GetRolePermissions mocks base method.
func (*MockStardogAPI) GetRoles ¶
func (m *MockStardogAPI) GetRoles(ctx context.Context) ([]string, error)
GetRoles mocks base method.
func (*MockStardogAPI) GetUser ¶
func (m *MockStardogAPI) GetUser(ctx context.Context, name string) (stardogapi.User, error)
GetUser mocks base method.
func (*MockStardogAPI) GetUserRoles ¶
GetUserRoles mocks base method.
func (*MockStardogAPI) ListDatabases ¶
func (m *MockStardogAPI) ListDatabases(ctx context.Context) ([]string, error)
ListDatabases mocks base method.
func (*MockStardogAPI) SetUserRoles ¶
SetUserRoles mocks base method.
type MockStardogAPIMockRecorder ¶
type MockStardogAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockStardogAPIMockRecorder is the mock recorder for MockStardogAPI.
func (*MockStardogAPIMockRecorder) AddRole ¶
func (mr *MockStardogAPIMockRecorder) AddRole(ctx, name interface{}) *gomock.Call
AddRole indicates an expected call of AddRole.
func (*MockStardogAPIMockRecorder) AddRolePermission ¶
func (mr *MockStardogAPIMockRecorder) AddRolePermission(ctx, name, permission interface{}) *gomock.Call
AddRolePermission indicates an expected call of AddRolePermission.
func (*MockStardogAPIMockRecorder) AddUser ¶
func (mr *MockStardogAPIMockRecorder) AddUser(ctx, name, password interface{}) *gomock.Call
AddUser indicates an expected call of AddUser.
func (*MockStardogAPIMockRecorder) CreateDatabase ¶
func (mr *MockStardogAPIMockRecorder) CreateDatabase(ctx, name, options interface{}) *gomock.Call
CreateDatabase indicates an expected call of CreateDatabase.
func (*MockStardogAPIMockRecorder) DeleteRole ¶
func (mr *MockStardogAPIMockRecorder) DeleteRole(ctx, name interface{}) *gomock.Call
DeleteRole indicates an expected call of DeleteRole.
func (*MockStardogAPIMockRecorder) DeleteRolePermission ¶
func (mr *MockStardogAPIMockRecorder) DeleteRolePermission(ctx, name, permission interface{}) *gomock.Call
DeleteRolePermission indicates an expected call of DeleteRolePermission.
func (*MockStardogAPIMockRecorder) DeleteUser ¶
func (mr *MockStardogAPIMockRecorder) DeleteUser(ctx, name interface{}) *gomock.Call
DeleteUser indicates an expected call of DeleteUser.
func (*MockStardogAPIMockRecorder) DropDatabase ¶
func (mr *MockStardogAPIMockRecorder) DropDatabase(ctx, name interface{}) *gomock.Call
DropDatabase indicates an expected call of DropDatabase.
func (*MockStardogAPIMockRecorder) GetRolePermissions ¶
func (mr *MockStardogAPIMockRecorder) GetRolePermissions(ctx, name interface{}) *gomock.Call
GetRolePermissions indicates an expected call of GetRolePermissions.
func (*MockStardogAPIMockRecorder) GetRoles ¶
func (mr *MockStardogAPIMockRecorder) GetRoles(ctx interface{}) *gomock.Call
GetRoles indicates an expected call of GetRoles.
func (*MockStardogAPIMockRecorder) GetUser ¶
func (mr *MockStardogAPIMockRecorder) GetUser(ctx, name interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockStardogAPIMockRecorder) GetUserRoles ¶
func (mr *MockStardogAPIMockRecorder) GetUserRoles(ctx, name interface{}) *gomock.Call
GetUserRoles indicates an expected call of GetUserRoles.
func (*MockStardogAPIMockRecorder) ListDatabases ¶
func (mr *MockStardogAPIMockRecorder) ListDatabases(ctx interface{}) *gomock.Call
ListDatabases indicates an expected call of ListDatabases.
func (*MockStardogAPIMockRecorder) SetUserRoles ¶
func (mr *MockStardogAPIMockRecorder) SetUserRoles(ctx, name, roles interface{}) *gomock.Call
SetUserRoles indicates an expected call of SetUserRoles.