userutils

package
v0.0.0-...-9f43f84 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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserUtil

type UserUtil interface {
	Lookup(name string) (*user.User, error)
	LookupGroup(name string) (*user.Group, error)
	LookupGroupId(name string) (*user.Group, error)
}

func NewUserUtilImp

func NewUserUtilImp() UserUtil

type UserUtilImp

type UserUtilImp struct{}

func (*UserUtilImp) Lookup

func (s *UserUtilImp) Lookup(name string) (*user.User, error)

func (*UserUtilImp) LookupGroup

func (s *UserUtilImp) LookupGroup(name string) (*user.Group, error)

func (*UserUtilImp) LookupGroupId

func (s *UserUtilImp) LookupGroupId(name string) (*user.Group, error)

type UserUtilMock

type UserUtilMock struct {
	LookupFunc        func(name string) (*user.User, error)
	LookupGroupFunc   func(name string) (*user.Group, error)
	LookupGroupIdFunc func(name string) (*user.Group, error)
}

func (*UserUtilMock) Lookup

func (mock *UserUtilMock) Lookup(name string) (*user.User, error)

func (*UserUtilMock) LookupGroup

func (mock *UserUtilMock) LookupGroup(name string) (*user.Group, error)

func (*UserUtilMock) LookupGroupId

func (mock *UserUtilMock) LookupGroupId(name string) (*user.Group, error)

Jump to

Keyboard shortcuts

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