Discover Packages
github.com/morecup/rclone
lib
bucket
package
Version:
v1.2.3
Opens a new window with list of versions in this module.
Published: Jul 28, 2025
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package bucket is contains utilities for managing bucket-based backends
Join path1 and path2
Like path.Join but does not clean the path - useful to preserve trailing /
Split takes an absolute path which includes the bucket and
splits it into a bucket and a path in that bucket
bucketPath
Cache stores whether buckets are available and their IDs
NewCache creates an empty Cache
Create the bucket with create() if it doesn't exist
If exists is set then if the bucket has been deleted it will call
exists() to see if it still exists.
If f returns an error we assume the bucket was not created
IsDeleted returns true if the bucket has definitely been deleted by
us, false otherwise.
MarkDeleted marks the bucket as being deleted
MarkOK marks the bucket as being present
Remove the bucket with f if it exists
If f returns an error we assume the bucket was not removed.
If the bucket has already been deleted it returns ErrAlreadyDeleted
type CreateFn func() error
CreateFn should be passed to Create to make a bucket
ExistsFn should be passed to Create to see if a bucket
exists or not
Source Files
¶
Click to show internal directories.
Click to hide internal directories.