Skip to content

angee.storage_integrate.schema

Console GraphQL surface for external storage mounts.

MountLocationType

python
@strawberry.type
class MountLocationType()

GraphQL projection of one location in a mount source tree.

MountBrowseResultType

python
@strawberry.type
class MountBrowseResultType()

GraphQL projection of one bounded page of mount-source locations.

MountType

python
@strawberry_django.type(Mount)
class MountType(IntegrationLabelMixin, BridgeSyncStatusMixin, AngeeNode)

Admin projection of an external storage Mount.

drive

python
@strawberry_django.field(only=["drive_id"])
def drive() -> strawberry.ID

Return the dedicated drive's public id without exposing its backend.

StorageIntegrateQuery

python
@strawberry.type
class StorageIntegrateQuery()

Admin reads for browsing mount source roots before connection.

browse_mount_source

python
@strawberry.field(permission_classes=ADMIN_PERMISSION_CLASSES)
def browse_mount_source(info: strawberry.Info,
                        backend_class: str = "local_folder",
                        credential_id: PublicID | None = None,
                        token: str = "") -> MountBrowseResultType

List one bounded level from a configured mount backend.

StorageIntegrateMutation

python
@strawberry.type
class StorageIntegrateMutation()

Admin connection and sync actions for storage mounts.

connect_local_folder

python
@strawberry.mutation(permission_classes=ADMIN_PERMISSION_CLASSES)
def connect_local_folder(info: strawberry.Info, name: str, path: str,
                         mode: MountMode) -> MountType

Connect a Django-host folder and queue its first sync.

sync_mount

python
@strawberry.mutation(permission_classes=ADMIN_PERMISSION_CLASSES)
def sync_mount(id: PublicID) -> ActionResult

Queue an immediate reconciliation of one Mount.

schemas

GraphQL contributions installed by the storage-integrate addon.

Released under the AGPL-3.0 License.