nextcloud

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, m map[string]interface{}) (invite.Repository, error)

New returns a new invite manager object.

Types

type Client

type Client struct {
	Config        *config
	HTTPClient    *http.Client
	GatewayClient gatewayv1beta1.GatewayAPIClient
}

Client is an API client.

func (*Client) AddRemoteUser

func (c *Client) AddRemoteUser(ctx context.Context, initiator *userpb.UserId, remoteUser *userpb.User) error

AddRemoteUser stores the remote user.

func (*Client) AddToken

func (c *Client) AddToken(ctx context.Context, token *invitepb.InviteToken) error

AddToken stores the token in the external repository.

func (*Client) DeleteRemoteUser

func (c *Client) DeleteRemoteUser(ctx context.Context, initiator *userpb.UserId, remoteUser *userpb.UserId) error

DeleteRemoteUser removes from the remote user from the initiator's list.

func (*Client) FindRemoteUsers

func (c *Client) FindRemoteUsers(ctx context.Context, initiator *userpb.UserId, attr string) ([]*userpb.User, error)

FindRemoteUsers finds remote users who have accepted invites based on their attributes.

func (*Client) GetRemoteUser

func (c *Client) GetRemoteUser(ctx context.Context, initiator *userpb.UserId, remoteUserID *userpb.UserId) (*userpb.User, error)

GetRemoteUser retrieves details about a remote user who has accepted an invite to share.

func (*Client) GetToken

func (c *Client) GetToken(ctx context.Context, token string) (*invitepb.InviteToken, error)

GetToken gets the token from the external repository.

func (*Client) ListTokens

func (c *Client) ListTokens(ctx context.Context, initiator *userpb.UserId) ([]*invitepb.InviteToken, error)

Jump to

Keyboard shortcuts

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