principal

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

WireSet provides a wire set for this package.

Functions

This section is empty.

Types

type CheckUsersInput

type CheckUsersInput struct {
	Emails []string `json:"emails"`
}

CheckUsersInput is object for checking users existence during repo(s) import.

type CheckUsersOutput

type CheckUsersOutput struct {
	UnknownEmails []string `json:"unknown_emails"`
}

CheckUsersOutput is output object for checking users existence.

type Controller

type Controller interface {
	// List lists the principals based on the provided filter.
	List(ctx context.Context, session *auth.Session, opts *types.PrincipalFilter) ([]*types.PrincipalInfo, error)
	Find(ctx context.Context, session *auth.Session, principalID int64) (*types.PrincipalInfo, error)
	CheckExistenceByEmails(ctx context.Context, session *auth.Session, input *CheckUsersInput) (*CheckUsersOutput, error)
}

Controller interface provides an abstraction that allows to have different implementations of principal related information.

func ProvideController

func ProvideController(principalStore store.PrincipalStore, authorizer authz.Authorizer) Controller

Jump to

Keyboard shortcuts

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