invite

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 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

	// GetRemoteUser retrieves details about a remote user who has accepted an invite to share.
	GetRemoteUser(ctx context.Context, remoteUserID *userpb.UserId) (*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