Documentation
¶
Index ¶
Constants ¶
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
Click to show internal directories.
Click to hide internal directories.