Documentation
¶
Index ¶
- Constants
- Variables
- func SetImpl(i Implementation)
- type Implementation
- type LIBNSS
- func (self LIBNSS) GroupAll() (Status, []Group)
- func (self LIBNSS) GroupByGid(gid uint) (Status, Group)
- func (self LIBNSS) GroupByName(name string) (Status, Group)
- func (self LIBNSS) PasswdAll() (Status, []Passwd)
- func (self LIBNSS) PasswdByName(name string) (Status, Passwd)
- func (self LIBNSS) PasswdByUid(uid uint) (Status, Passwd)
- func (self LIBNSS) ShadowAll() (Status, []Shadow)
- func (self LIBNSS) ShadowByName(name string) (Status, Shadow)
- type Status
Constants ¶
View Source
const ( StatusTryagain = C.NSS_STATUS_TRYAGAIN StatusNotfound = C.NSS_STATUS_NOTFOUND StatusSuccess = C.NSS_STATUS_SUCCESS )
Variables ¶
View Source
var ErrNotFound error = errors.New("not found")
Functions ¶
Types ¶
type Implementation ¶
type Implementation interface { //PasswdOpen() (Status) //PasswdClose() (Status) PasswdAll() (Status, []Passwd) PasswdByName(name string) (Status, Passwd) PasswdByUid(uid uint) (Status, Passwd) //GroupOpen() (Status) //GroupClose() (Status) GroupAll() (Status, []Group) GroupByName(name string) (Status, Group) GroupByGid(gid uint) (Status, Group) //ShadowOpen() (Status) //ShadowClose() (Status) ShadowAll() (Status, []Shadow) ShadowByName(name string) (Status, Shadow) }
Click to show internal directories.
Click to hide internal directories.