conversions

package
v3.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ShareJailID = "a0ca6a90-a365-4782-871e-d44447bbc668"

ShareJailID is the jail ID for shares

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WebBase string
}

Config contains the configuration for OCM conversions

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

Converter provides methods to convert OCM shares to libregraph representations

func NewConverter

func NewConverter(gatewayClient gateway.GatewayAPIClient, config *Config) *Converter

NewConverter creates a new OCM converter

func (*Converter) CS3GranteeToSharePointIdentitySet

func (c *Converter) CS3GranteeToSharePointIdentitySet(ctx context.Context, grantee *provider.Grantee) (*libregraph.SharePointIdentitySet, error)

CS3GranteeToSharePointIdentitySet converts a CS3 grantee to a SharePoint identity set for OCM users

func (*Converter) OCMReceivedShareToDriveItem

func (c *Converter) OCMReceivedShareToDriveItem(ctx context.Context, receivedOCMShare *ocm.ReceivedShare, unifiedRoleConverter func(context.Context, *provider.ResourcePermissions) *UnifiedRoleDefinition) (*libregraph.DriveItem, error)

OCMReceivedShareToDriveItem converts an OCM received share to a libregraph DriveItem

type UnifiedRoleDefinition

type UnifiedRoleDefinition struct {
	Id *string
}

UnifiedRoleDefinition represents a unified role definition This is a simplified version for the converter to avoid circular dependencies

Jump to

Keyboard shortcuts

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