Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶ added in v0.1.0
type Database interface { Close(cxt context.Context) error CreateUser(ctx context.Context, username, password string) (map[string]string, error) DeleteUser(ctx context.Context, username string) error ApplyPrivileges(ctx context.Context, username string, privileges []v1alpha1.PrivilegeSpec) error RevokePrivileges(ctx context.Context, username string, privileges []v1alpha1.PrivilegeSpec) error }
type FakeDatabase ¶ added in v0.1.0
type FakeDatabase struct {
Conn fakeConnection
}
func NewFakeDatabase ¶ added in v0.1.0
func NewFakeDatabase() *FakeDatabase
func (*FakeDatabase) DatabaseCreatorFunc ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.