invite

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// GenerateToken creates a new token for the user with a specified validity.
	GenerateToken(ctx context.Context) (*invitepb.InviteToken, error)

	// ForwardInvite forwards a received invite to the sync'n'share system provider.
	ForwardInvite(ctx context.Context, invite *invitepb.InviteToken, originProvider *ocmprovider.ProviderInfo) error

	// AcceptInvite completes an invitation acceptance.
	AcceptInvite(ctx context.Context, invite *invitepb.InviteToken, remoteUser *userpb.User) error

	// GetAcceptedUser retrieves details about a remote user who has accepted an invite to share.
	GetAcceptedUser(ctx context.Context, remoteUserID *userpb.UserId) (*userpb.User, error)

	// FindAcceptedUsers finds remote users who have accepted invites based on their attributes.
	FindAcceptedUsers(ctx context.Context, query string) ([]*userpb.User, error)
}

Manager is the interface that is used to perform operations to invites.

Directories

Path Synopsis
manager

Jump to

Keyboard shortcuts

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