Documentation ¶
Overview ¶
Package sqliteidm is an Identity manager backed by a SQLite database for AVFS.
Index ¶
- type Group
- type SQLiteIdm
- func (idm *SQLiteIdm) AdminGroup() avfs.GroupReader
- func (idm *SQLiteIdm) AdminUser() avfs.UserReader
- func (idm *SQLiteIdm) Close() error
- func (idm *SQLiteIdm) Features() avfs.Features
- func (idm *SQLiteIdm) GroupAdd(name string) (avfs.GroupReader, error)
- func (idm *SQLiteIdm) GroupDel(name string) error
- func (idm *SQLiteIdm) HasFeature(features avfs.Features) bool
- func (idm *SQLiteIdm) LookupGroup(name string) (avfs.GroupReader, error)
- func (idm *SQLiteIdm) LookupGroupId(gid int) (avfs.GroupReader, error)
- func (idm *SQLiteIdm) LookupUser(name string) (avfs.UserReader, error)
- func (idm *SQLiteIdm) LookupUserId(uid int) (avfs.UserReader, error)
- func (idm *SQLiteIdm) Type() string
- func (idm *SQLiteIdm) UserAdd(name, groupName string) (avfs.UserReader, error)
- func (idm *SQLiteIdm) UserDel(name string) error
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group is the implementation of avfs.GroupReader.
type SQLiteIdm ¶
type SQLiteIdm struct {
// contains filtered or unexported fields
}
func (*SQLiteIdm) AdminGroup ¶ added in v0.6.0
func (idm *SQLiteIdm) AdminGroup() avfs.GroupReader
AdminGroup returns the administrator (root) group.
func (*SQLiteIdm) AdminUser ¶ added in v0.6.0
func (idm *SQLiteIdm) AdminUser() avfs.UserReader
AdminUser returns the administrator (root) user.
func (*SQLiteIdm) Features ¶
Features returns the set of features provided by the file system or identity manager.
func (*SQLiteIdm) GroupAdd ¶
func (idm *SQLiteIdm) GroupAdd(name string) (avfs.GroupReader, error)
GroupAdd adds a new group.
func (*SQLiteIdm) HasFeature ¶
HasFeature returns true if the file system or identity manager provides a given feature.
func (*SQLiteIdm) LookupGroup ¶
func (idm *SQLiteIdm) LookupGroup(name string) (avfs.GroupReader, error)
LookupGroup looks up a group by name. If the group cannot be found, the returned error is of type UnknownGroupError.
func (*SQLiteIdm) LookupGroupId ¶
func (idm *SQLiteIdm) LookupGroupId(gid int) (avfs.GroupReader, error)
LookupGroupId looks up a group by groupid. If the group cannot be found, the returned error is of type UnknownGroupIdError.
func (*SQLiteIdm) LookupUser ¶
func (idm *SQLiteIdm) LookupUser(name string) (avfs.UserReader, error)
LookupUser looks up a user by username. If the user cannot be found, the returned error is of type UnknownUserError.
func (*SQLiteIdm) LookupUserId ¶
func (idm *SQLiteIdm) LookupUserId(uid int) (avfs.UserReader, error)
LookupUserId looks up a user by userid. If the user cannot be found, the returned error is of type UnknownUserIdError.