user

package
v0.0.0-...-4da4744 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group = gouser.Group

func LookupGroup

func LookupGroup(groupname string) (*Group, error)

func LookupGroupId

func LookupGroupId(gid string) (*Group, error)

type LookupProvider

type LookupProvider interface {
	Lookup(username string) (*User, error)
	LookupId(uid string) (*User, error)
	LookupGroup(groupname string) (*Group, error)
	LookupGroupId(gid string) (*Group, error)
}
var DefaultLookupProvider LookupProvider = &chainLookupProvider{
	providers: []LookupProvider{
		goLookupProvider{},
		newGetentLookupProvider(),
	},
}

type UnknownGroupError

type UnknownGroupError = gouser.UnknownGroupError

type UnknownGroupIdError

type UnknownGroupIdError = gouser.UnknownGroupIdError

type UnknownUserError

type UnknownUserError = gouser.UnknownUserError

type UnknownUserIdError

type UnknownUserIdError = gouser.UnknownUserIdError

type User

type User = gouser.User

func Lookup

func Lookup(username string) (*User, error)

func LookupId

func LookupId(uid string) (*User, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL