Documentation ¶
Index ¶
- Variables
- type DummyGroup
- type DummyIdm
- func (idm *DummyIdm) AdminGroup() avfs.GroupReader
- func (idm *DummyIdm) AdminUser() avfs.UserReader
- func (idm *DummyIdm) Features() avfs.Features
- func (idm *DummyIdm) GroupAdd(name string) (avfs.GroupReader, error)
- func (idm *DummyIdm) GroupDel(name string) error
- func (idm *DummyIdm) HasFeature(feature avfs.Features) bool
- func (idm *DummyIdm) LookupGroup(name string) (avfs.GroupReader, error)
- func (idm *DummyIdm) LookupGroupId(gid int) (avfs.GroupReader, error)
- func (idm *DummyIdm) LookupUser(name string) (avfs.UserReader, error)
- func (idm *DummyIdm) LookupUserId(uid int) (avfs.UserReader, error)
- func (idm *DummyIdm) OSType() avfs.OSType
- func (idm *DummyIdm) Type() string
- func (idm *DummyIdm) UserAdd(name, groupName string) (avfs.UserReader, error)
- func (idm *DummyIdm) UserDel(name string) error
- type DummyUser
Constants ¶
This section is empty.
Variables ¶
var NotImplementedIdm = New() //nolint:gochecknoglobals // Used as default Idm for other file systems.
NotImplementedIdm is the default identity manager for all file systems.
Functions ¶
This section is empty.
Types ¶
type DummyGroup ¶ added in v0.3.2
type DummyGroup struct {
// contains filtered or unexported fields
}
DummyGroup is the implementation of avfs.GroupReader.
func NewGroup ¶ added in v0.3.2
func NewGroup(name string, gid int) *DummyGroup
func (*DummyGroup) Name ¶ added in v0.3.2
func (g *DummyGroup) Name() string
Name returns the Group name.
type DummyIdm ¶
type DummyIdm struct {
// contains filtered or unexported fields
}
DummyIdm represent a non implemented identity manager using the avfs.IdentityMgr interface.
func (*DummyIdm) AdminGroup ¶ added in v0.3.2
func (idm *DummyIdm) AdminGroup() avfs.GroupReader
AdminGroup returns the administrators (root) group.
func (*DummyIdm) AdminUser ¶ added in v0.3.2
func (idm *DummyIdm) AdminUser() avfs.UserReader
AdminUser returns the administrator (root) user.
func (*DummyIdm) Features ¶ added in v0.2.0
Features returns the set of features provided by the file system or identity manager.
func (*DummyIdm) GroupAdd ¶
func (idm *DummyIdm) GroupAdd(name string) (avfs.GroupReader, error)
GroupAdd adds a new group.
func (*DummyIdm) HasFeature ¶ added in v0.2.0
HasFeature returns true if the file system or identity manager provides a given feature.
func (*DummyIdm) LookupGroup ¶
func (idm *DummyIdm) 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 (*DummyIdm) LookupGroupId ¶
func (idm *DummyIdm) 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 (*DummyIdm) LookupUser ¶
func (idm *DummyIdm) 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 (*DummyIdm) LookupUserId ¶
func (idm *DummyIdm) 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.
func (*DummyIdm) OSType ¶ added in v0.3.2
OSType returns the operating system type of the identity manager.
type DummyUser ¶ added in v0.3.2
type DummyUser struct {
// contains filtered or unexported fields
}
DummyUser is the implementation of avfs.UserReader.
func (*DummyUser) IsAdmin ¶ added in v0.3.2
IsAdmin returns true if the user has administrator (root) privileges.