Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideController, )
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
Click to show internal directories.
Click to hide internal directories.