|
|
@ -2,7 +2,7 @@
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
|
|
// Package groupmemeber verifies group membership of the provided user on the
|
|
|
|
// Package groupmember verifies group membership of the provided user on the
|
|
|
|
// local system.
|
|
|
|
// local system.
|
|
|
|
package groupmember
|
|
|
|
package groupmember
|
|
|
|
|
|
|
|
|
|
|
@ -13,9 +13,8 @@ import (
|
|
|
|
|
|
|
|
|
|
|
|
var ErrNotImplemented = errors.New("not implemented for GOOS=" + runtime.GOOS)
|
|
|
|
var ErrNotImplemented = errors.New("not implemented for GOOS=" + runtime.GOOS)
|
|
|
|
|
|
|
|
|
|
|
|
// IsMemberOfGroup verifies if the provided user is member of the provided
|
|
|
|
// IsMemberOfGroup reports whether the provided user is a member of
|
|
|
|
// system group.
|
|
|
|
// the provided system group.
|
|
|
|
// If verification fails, an error is returned.
|
|
|
|
|
|
|
|
func IsMemberOfGroup(group, userName string) (bool, error) {
|
|
|
|
func IsMemberOfGroup(group, userName string) (bool, error) {
|
|
|
|
return isMemberOfGroup(group, userName)
|
|
|
|
return isMemberOfGroup(group, userName)
|
|
|
|
}
|
|
|
|
}
|
|
|
|