Documentation ¶
Overview ¶
Package invites provides the invite utilities for minder
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExpireIn7Days ¶
func GetExpireIn7Days(t time.Time) *timestamppb.Timestamp
GetExpireIn7Days returns the expiration date of the invitation 7 days from t.Now()
Types ¶
type InviteService ¶
type InviteService interface { // CreateInvite creates a new user invite CreateInvite(ctx context.Context, qtx db.Querier, idClient auth.Resolver, eventsPub events.Publisher, emailConfig serverconfig.EmailConfig, targetProject uuid.UUID, authzRole authz.Role, inviteeEmail string, ) (*minder.Invitation, error) // UpdateInvite updates the invite status UpdateInvite(ctx context.Context, qtx db.Querier, idClient auth.Resolver, eventsPub events.Publisher, emailConfig serverconfig.EmailConfig, targetProject uuid.UUID, authzRole authz.Role, inviteeEmail string, ) (*minder.Invitation, error) // RemoveInvite removes the user invite RemoveInvite(ctx context.Context, qtx db.Querier, idClient auth.Resolver, targetProject uuid.UUID, authzRole authz.Role, inviteeEmail string, ) (*minder.Invitation, error) }
InviteService encapsulates the methods to manage user invites to a project
func NewInviteService ¶
func NewInviteService() InviteService
NewInviteService creates a new instance of InviteService
Click to show internal directories.
Click to hide internal directories.