Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
// CreateUser creates a user in the backend and returns an identifier string.
CreateUser(ctx context.Context, invitation *invitations.Invitation) (string, error)
// CanSendMail should return true if the backend can send mail
CanSendMail() bool
// SendMail sends a mail to the user with details on how to reedeem the invitation.
SendMail(ctx context.Context, identifier string) error
}
Backend defines the behaviour of a user backend.
type Option ¶
type Option func(o *Options)
Option defines a single option function.
type Service ¶
type Service interface {
// Invite creates a new invitation. Invitation adds an external user to the organization.
//
// When creating a new invitation you have several options available:
// 1. On invitation creation, Microsoft Graph can automatically send an
// invitation email directly to the invited user, or your app can use
// the inviteRedeemUrl returned in the creation response to craft your
// own invitation (through your communication mechanism of choice) to
// the invited user. If you decide to have Microsoft Graph send an
// invitation email automatically, you can control the content and
// language of the email using invitedUserMessageInfo.
// 2. When the user is invited, a user entity (of userType Guest) is
// created and can now be used to control access to resources. The
// invited user has to go through the redemption process to access any
// resources they have been invited to.
Invite(ctx context.Context, invitation *invitations.Invitation) (*invitations.Invitation, error)
}
Service defines the extension handlers.
func NewInstrument ¶
NewInstrument returns a service that instruments metrics.
func NewLogging ¶
NewLogging returns a service that logs messages.
func NewTracing ¶
func NewTracing(next Service, tp trace.TracerProvider) Service
NewTracing returns a service that instruments traces.
Click to show internal directories.
Click to hide internal directories.