Skip to content

Conversation

@Chesyre
Copy link
Contributor

@Chesyre Chesyre commented Sep 16, 2025

  • Adjusts driver addition metadata to accept LinkExpiry and DirectLinkExpiry options for caching and API expiry control.

  • Applies the new options when building file links, setting optional local cache expiratio and sending an expireTime to the direct-link API.

  • Logs Gofile API error payloads and validates the structured error response before returning it.

  • Adds the required imports and returns the configured model.Link instance.

Add support for Gofile.io cloud storage service with full CRUD operations.
Features:
- File and folder listing
- Upload and download functionality
- Create, move, rename, copy, and delete operations
- Direct link generation for file access
- API token authentication
The driver implements all required driver interfaces and follows
the existing driver patterns in the codebase.
- Adjusts driver addition metadata to accept LinkExpiry and DirectLinkExpiry options for caching and API expiry control (drivers/gofile/meta.go:10).

- Applies the new options when building file links, setting optional local cache expiration (drivers/gofile/driver.go:101) and sending an expireTime to the direct-link API (drivers/gofile/util.go:202).

- Logs Gofile API error payloads and validates the structured error response before returning it (drivers/gofile/util.go:141).

- Adds the required imports and returns the configured model.Link instance (drivers/gofile/driver.go:6).
@skysliences skysliences merged commit d17889b into AlistGo:main Sep 30, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants