usergroup

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

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("usergroup not found")

WireSet provides a wire set for this package.

Functions

This section is empty.

Types

type GitfoxResolver

type GitfoxResolver struct {
}

func NewGitfoxResolver

func NewGitfoxResolver() *GitfoxResolver

func (*GitfoxResolver) Resolve

type Resolver

type Resolver interface {
	Resolve(ctx context.Context, scopedID string) (*types.UserGroup, error)
}

func ProvideUserGroupResolver

func ProvideUserGroupResolver() Resolver

type SearchService

type SearchService interface {
	Search(
		ctx context.Context,
		filter *types.ListQueryFilter,
		spacePath string,
	) ([]*types.UserGroupInfo, error)
	ListUsers(
		ctx context.Context,
		session *auth.Session,
		userGroup *types.UserGroup,
	) ([]string, error)

	ListUserIDsByGroupIDs(ctx context.Context, userGroupIDs []int64) ([]int64, error)
}

func NewSearchService

func NewSearchService() SearchService

func ProvideSearchService

func ProvideSearchService() SearchService

Jump to

Keyboard shortcuts

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