defaults

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BundleUUIDRoleAdmin represents the admin role
	BundleUUIDRoleAdmin = "71881883-1768-46bd-a24d-a356a2afdf7f"
	// BundleUUIDRoleSpaceAdmin represents the space admin role
	BundleUUIDRoleSpaceAdmin = "2aadd357-682c-406b-8874-293091995fdd"
	// BundleUUIDRoleUser represents the user role.
	BundleUUIDRoleUser = "d7beeea8-8ff4-406b-8fb6-ab2dd81e6b11"
	// BundleUUIDRoleUserLight represents the user light role.
	BundleUUIDRoleUserLight = "38071a68-456a-4553-846a-fa67bf5596cc"
	// BundleUUIDProfile represents the user profile.
	BundleUUIDProfile = "2a506de7-99bd-4f0d-994e-c38e72c28fd9"
	// BundleUUIDServiceAccount represents the service account role.
	BundleUUIDServiceAccount = "bcceed81-c610-49cc-ab77-39a024e8da12"
	// SettingUUIDProfileLanguage is the hardcoded setting UUID for the user profile language
	SettingUUIDProfileLanguage = "aa8cfbe5-95d4-4f7e-a032-c3c01f5f062f"
	// SettingUUIDProfileDisableNotifications is the hardcoded setting UUID for the disable notifications setting
	SettingUUIDProfileDisableNotifications = "33ffb5d6-cd07-4dc0-afb0-84f7559ae438"
	// SettingUUIDProfileAutoAcceptShares is the hardcoded setting UUID for the disable notifications setting
	SettingUUIDProfileAutoAcceptShares = "ec3ed4a3-3946-4efc-8f9f-76d38b12d3a9"

	// SettingUUIDProfileEmailSendingInterval is the hardcoded setting UUID for the email sending interval setting
	SettingUUIDProfileEmailSendingInterval = "08dec2fe-3f97-42a9-9d1b-500855e92f25"
	// SettingUUIDProfileEventShareCreated it the hardcoded setting UUID for the send in app setting
	SettingUUIDProfileEventShareCreated = "872d8ef6-6f2a-42ab-af7d-f53cc81d7046"
	// SettingUUIDProfileEventShareRemoved is the hardcoded setting UUID for the send in app setting
	SettingUUIDProfileEventShareRemoved = "d7484394-8321-4c84-9677-741ba71e1f80"
	// SettingUUIDProfileEventShareExpired is the hardcoded setting UUID for the send in app setting
	SettingUUIDProfileEventShareExpired = "e1aa0b7c-1b0f-4072-9325-c643c89fee4e"
	// SettingUUIDProfileEventSpaceShared is the hardcoded setting UUID for the send in app setting
	SettingUUIDProfileEventSpaceShared = "694d5ee1-a41c-448c-8d14-396b95d2a918"
	// SettingUUIDProfileEventSpaceUnshared is the hardcoded setting UUID for the send in app setting
	SettingUUIDProfileEventSpaceUnshared = "26c20e0e-98df-4483-8a77-759b3a766af0"
	// SettingUUIDProfileEventSpaceMembershipExpired is the hardcoded setting UUID for the send in app setting
	SettingUUIDProfileEventSpaceMembershipExpired = "7275921e-b737-4074-ba91-3c2983be3edd"
	// SettingUUIDProfileEventSpaceDisabled is the hardcoded setting UUID for the send in app setting
	SettingUUIDProfileEventSpaceDisabled = "eb5c716e-03be-42c6-9ed1-1105d24e109f"
	// SettingUUIDProfileEventSpaceDeleted is the hardcoded setting UUID for the send in app setting
	SettingUUIDProfileEventSpaceDeleted = "094ceca9-5a00-40ba-bb1a-bbc7bccd39ee"
	// SettingUUIDProfileEventPostprocessingStepFinished is the hardcoded setting UUID for the send in mail setting
	SettingUUIDProfileEventPostprocessingStepFinished = "fe0a3011-d886-49c8-b797-33d02fa426ef"
)

Variables

View Source
var (
	// All is a convenience variable to set constraint to all
	All = settingsmsg.Permission_CONSTRAINT_ALL
	// Own is a convenience variable to set constraint to own
	Own = settingsmsg.Permission_CONSTRAINT_OWN
)
View Source
var (
	// name of the notification option 'Share Received'
	TemplateShareCreated = l10n.Template("Share Received")
	// description of the notification option 'Share Received'
	TemplateShareCreatedDescription = l10n.Template("Notify when I have received a share")
	// name of the notification option 'Share Removed'
	TemplateShareRemoved = l10n.Template("Share Removed")
	// description of the notification option 'Share Removed'
	TemplateShareRemovedDescription = l10n.Template("Notify when a received share has been removed")
	// name of the notification option 'Share Expired'
	TemplateShareExpired = l10n.Template("Share Expired")
	// description of the notification option 'Share Expired'
	TemplateShareExpiredDescription = l10n.Template("Notify when a received share has expired")
	// name of the notification option 'Space Shared'
	TemplateSpaceShared = l10n.Template("Added as space member")
	// description of the notification option 'Space Shared'
	TemplateSpaceSharedDescription = l10n.Template("Notify when I have been added as a member to a space")
	// name of the notification option 'Space Unshared'
	TemplateSpaceUnshared = l10n.Template("Removed as space member")
	// description of the notification option 'Space Unshared'
	TemplateSpaceUnsharedDescription = l10n.Template("Notify when I have been removed as member from a space")
	// name of the notification option 'Space Membership Expired'
	TemplateSpaceMembershipExpired = l10n.Template("Space membership expired")
	// description of the notification option 'Space Membership Expired'
	TemplateSpaceMembershipExpiredDescription = l10n.Template("Notify when a space membership has expired")
	// name of the notification option 'Space Disabled'
	TemplateSpaceDisabled = l10n.Template("Space disabled")
	// description of the notification option 'Space Disabled'
	TemplateSpaceDisabledDescription = l10n.Template("Notify when a space I am member of has been disabled")
	// name of the notification option 'Space Deleted'
	TemplateSpaceDeleted = l10n.Template("Space deleted")
	// description of the notification option 'Space Deleted'
	TemplateSpaceDeletedDescription = l10n.Template("Notify when a space I am member of has been deleted")
	// name of the notification option 'File Rejected'
	TemplateFileRejected = l10n.Template("File rejected")
	// description of the notification option 'File Rejected'
	TemplateFileRejectedDescription = l10n.Template("Notify when a file I uploaded was rejected because of a virus infection or policy violation")
	// name of the notification option 'Email Interval'
	TemplateEmailSendingInterval = l10n.Template("Email sending interval")
	// description of the notification option 'Email Interval'
	TemplateEmailSendingIntervalDescription = l10n.Template("Selected value:")
	// translation for the 'instant' email interval option
	TemplateIntervalInstant = l10n.Template("Instant")
	// translation for the 'daily' email interval option
	TemplateIntervalDaily = l10n.Template("Daily")
	// translation for the 'weekly' email interval option
	TemplateIntervalWeekly = l10n.Template("Weekly")
	// translation for the 'never' email interval option
	TemplateIntervalNever = l10n.Template("Never")
)

Translatable configuration options

Functions

func AccountManagementPermission

func AccountManagementPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

AccountManagementPermission is the permission to manage accounts

func AutoAcceptSharesPermission

func AutoAcceptSharesPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

AutoAcceptSharesPermission is the permission to enable share auto-accept

func ChangeLogoPermission

func ChangeLogoPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ChangeLogoPermission is the permission to change the logo

func CreatePublicLinkPermission

func CreatePublicLinkPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

CreatePublicLinkPermission is the permission to create public links

func CreateSharePermission

func CreateSharePermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

CreateSharePermission is the permission to create shares

func CreateSpacesPermission

func CreateSpacesPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

CreateSpacesPermission is the permission to create spaces

func DefaultRoleAssignments

func DefaultRoleAssignments(cfg *config.Config) []*settingsmsg.UserRoleAssignment

DefaultRoleAssignments returns (as one might guess) the default role assignments

func DeletePersonalSpacesPermission

func DeletePersonalSpacesPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

DeletePersonalSpacesPermission is the permission to delete personal spaces

func DeleteProjectSpacesPermission

func DeleteProjectSpacesPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

DeleteProjectSpacesPermission is the permission to delete project spaces

func DeleteReadOnlyPublicLinkPasswordPermission

func DeleteReadOnlyPublicLinkPasswordPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

DeleteReadOnlyPublicLinkPasswordPermission is the permission to delete read-only public link passwords

func DisableEmailNotificationsPermission

func DisableEmailNotificationsPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

DisableEmailNotificationsPermission is the permission to disable email notifications

func GenerateBundlesDefaultRoles

func GenerateBundlesDefaultRoles() []*settingsmsg.Bundle

GenerateBundlesDefaultRoles bootstraps the default roles.

func GenerateDefaultProfileBundle

func GenerateDefaultProfileBundle() *settingsmsg.Bundle

GenerateDefaultProfileBundle return the default profile bundle.

func GroupManagementPermission

func GroupManagementPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

GroupManagementPermission is the permission to manage groups

func LanguageManagementPermission

func LanguageManagementPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

LanguageManagementPermission is the permission to manage the language

func ListFavoritesPermission

func ListFavoritesPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ListFavoritesPermission is the permission to list favorites

func ListSpacesPermission

func ListSpacesPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ListSpacesPermission is the permission to list spaces

func ManageSpacePropertiesPermission

func ManageSpacePropertiesPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ManageSpacePropertiesPermission is the permission to manage space properties

func ProfileEmailSendingIntervalPermission

func ProfileEmailSendingIntervalPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ProfileEmailSendingIntervalPermission is the permission to set the email sending interval

func ProfileEventPostprocessingStepFinishedPermission

func ProfileEventPostprocessingStepFinishedPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ProfileEventPostprocessingStepFinishedPermission is the permission to set the email sending interval

func ProfileEventShareCreatedPermission

func ProfileEventShareCreatedPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ProfileEventShareCreatedPermission is

func ProfileEventShareExpiredPermission

func ProfileEventShareExpiredPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ProfileEventShareExpiredPermission is the permission to set the email sending interval

func ProfileEventShareRemovedPermission

func ProfileEventShareRemovedPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ProfileEventShareRemovedPermission is the permission to set the email sending interval

func ProfileEventSpaceDeletedPermission

func ProfileEventSpaceDeletedPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ProfileEventSpaceDeletedPermission is the permission to set the email sending interval

func ProfileEventSpaceDisabledPermission

func ProfileEventSpaceDisabledPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ProfileEventSpaceDisabledPermission is the permission to set the email sending interval

func ProfileEventSpaceMembershipExpiredPermission

func ProfileEventSpaceMembershipExpiredPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ProfileEventSpaceMembershipExpiredPermission is the permission to set the email sending interval

func ProfileEventSpaceSharedPermission

func ProfileEventSpaceSharedPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ProfileEventSpaceSharedPermission is the permission to set the email sending interval

func ProfileEventSpaceUnsharedPermission

func ProfileEventSpaceUnsharedPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

ProfileEventSpaceUnsharedPermission is the permission to set the email sending interval

func RoleManagementPermission

func RoleManagementPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

RoleManagementPermission is the permission to manage roles

func SelfManagementPermission

func SelfManagementPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

SelfManagementPermission is the permission to manage itself

func ServiceAccountBundle

func ServiceAccountBundle() *settingsmsg.Bundle

ServiceAccountBundle returns the service account bundle

func SetPersonalSpaceQuotaPermission

func SetPersonalSpaceQuotaPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

SetPersonalSpaceQuotaPermission is the permission to set the quota for personal spaces

func SetProjectSpaceQuotaPermission

func SetProjectSpaceQuotaPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

SetProjectSpaceQuotaPermission is the permission to set the quota for project spaces

func SettingsManagementPermission

func SettingsManagementPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

SettingsManagementPermission is the permission to manage settings

func SpaceAbilityPermission

func SpaceAbilityPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

SpaceAbilityPermission is the permission to enable or disable spaces

func WriteFavoritesPermission

func WriteFavoritesPermission(c settingsmsg.Permission_Constraint) *settingsmsg.Setting

WriteFavoritesPermission is the permission to mark/unmark files as favorites

Types

This section is empty.

Jump to

Keyboard shortcuts

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