Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupGranteeFilter ¶ added in v0.0.2
func GroupGranteeFilter() *collaboration.Filter
GroupGranteeFilter is an abstraction for creating filter by grantee type group.
func ResourceIDFilter ¶ added in v0.0.2
func ResourceIDFilter(id *provider.ResourceId) *collaboration.Filter
ResourceIDFilter is an abstraction for creating filter by resource id.
func UserGranteeFilter ¶ added in v0.0.2
func UserGranteeFilter() *collaboration.Filter
UserGranteeFilter is an abstraction for creating filter by grantee type user.
Types ¶
type Manager ¶
type Manager interface { context.Context, md *provider.ResourceInfo, g *collaboration.ShareGrant) (*collaboration.Share, error) GetShare(ctx context.Context, ref *collaboration.ShareReference) (*collaboration.Share, error) Unshare(ctx context.Context, ref *collaboration.ShareReference) error UpdateShare(ctx context.Context, ref *collaboration.ShareReference, p *collaboration.SharePermissions) (*collaboration.Share, error) // it returns only shares attached to the given resource. ListShares(ctx context.Context, filters []*collaboration.Filter) ([]*collaboration.Share, error) ListReceivedShares(ctx context.Context, filters []*collaboration.Filter) ([]*collaboration.ReceivedShare, error) GetReceivedShare(ctx context.Context, ref *collaboration.ShareReference) (*collaboration.ReceivedShare, error) UpdateReceivedShare(ctx context.Context, ref *collaboration.ShareReference, f *collaboration.UpdateReceivedShareRequest_UpdateField) (*collaboration.ReceivedShare, error) }Share(ctx
Manager is the interface that manipulates shares.
Click to show internal directories.
Click to hide internal directories.