collaboration

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockCollaborators

func GetBlockCollaborators(jwtToken string, blockParam common.ResourceIdParam) (response.Block, error)

func GetUsersThisBlockCanBeSharedWith

func GetUsersThisBlockCanBeSharedWith(
	jwtToken string,
	blockAclParam common.SearchUsersParam,
) ([]response.SearchUser, error)

func LeaveBlock

func LeaveBlock(jwtToken string, blockParam common.ResourceIdParam) error

func ShareBlockWithCollaborator

func ShareBlockWithCollaborator(
	jwtToken string,
	reqBody request.BlockAclReqBody,
	blockAclParam common.AclParam,
) (response.Block, error)

func ShareBlockWithUserWithPods

func ShareBlockWithUserWithPods(
	jwtToken string,
	reqBody ShareBlockWithPodsReqBody,
	blockAclParam common.AclParam,
) (response.Block, error)

func ShareBlocksWithCollaborators

func ShareBlocksWithCollaborators(
	jwtToken string,
	reqBody BlockBulkShareReqBody,
	blockAclParam common.AclParam,
) error

func UnshareBlockWithCollaborator

func UnshareBlockWithCollaborator(jwtToken string, blockAclParam common.AclParam) (response.Block, error)

func UpdateBlockAcl

func UpdateBlockAcl(
	jwtToken string,
	reqBody request.BlockAclReqBody,
	blockAclParam common.AclParam,
) (response.Block, error)

Types

type BlockBulkShareReqBody

type BlockBulkShareReqBody struct {
	Acl      string `json:"blockAcl"`
	BlockIds string `json:"blockIds"`
}

type ShareBlockWithPodsReqBody

type ShareBlockWithPodsReqBody struct {
	Acl    string `json:"blockAcl"`
	PodIds string `json:"podIds"`
}

Jump to

Keyboard shortcuts

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