Documentation ¶
Index ¶
- func Lock(url string) (io.Closer, error)
- func LockContext(ctx context.Context, url string) (io.Closer, error)
- func RLock(url string) (io.Closer, error)
- func RLockContext(ctx context.Context, url string) (io.Closer, error)
- func Readdir(url string) ([]os.FileInfo, error)
- func ReaddirContext(ctx context.Context, url string) ([]os.FileInfo, error)
- func Remove(url string) error
- func RemoveContext(ctx context.Context, url string) error
- func Stat(url string) (os.FileInfo, error)
- func StatContext(ctx context.Context, url string) (os.FileInfo, error)
- func Visit(url string, visitor Visitor) error
- func VisitContext(ctx context.Context, url string, visitor Visitor) error
- type AnonymousObject
- type CommitInfo
- type Object
- type ObjectWriter
- type Visitor
- type VisitorConcurrency
- type VisitorPredicate
- type VisitorTraversal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lock ¶
Lock acquires an advisory exclusive lock on the object specified, potentially creating it if it does not already exist.
func LockContext ¶
Lock acquires an advisory exclusive lock on the object specified, potentially creating it if it does not already exist.
func RLock ¶
RLock acquires an advisory shared lock on the object specified, potentially creating it if it does not already exist.
func RLockContext ¶
RLock acquires an advisory shared lock on the object specified, potentially creating it if it does not already exist.
func Readdir ¶
Readdir reads the contents of the directory and returns a slice of FileInfo values, as would be returned by Stat, in directory order.
func ReaddirContext ¶
Readdir reads the contents of the directory and returns a slice of FileInfo values, as would be returned by Stat, in directory order.
func StatContext ¶
Stat returns a FileInfo describing the Object
Types ¶
type AnonymousObject ¶
type AnonymousObject interface { driver.AnonymousObject }
AnonymousObject represents a read-only, fixed size, random access object.
func Concat ¶
func Concat(objects ...AnonymousObject) AnonymousObject
func ConcurrentConcat ¶
func ConcurrentConcat(objects ...AnonymousObject) AnonymousObject
func Slice ¶
func Slice(o AnonymousObject, off int64, n int64) AnonymousObject
Slice returns an AnonymousObject that reads from o starting at offset off and stops with EOF after n bytes.
type CommitInfo ¶
type CommitInfo interface { driver.CommitInfo }
type Object ¶
Object represents a AnonymousObject with a URL
func OpenContextSize ¶
Open opens the Object with the context and declared size.
func WithURL ¶
func WithURL(o AnonymousObject, url string) Object
WithURL gives a URL to an AnonymousObject
type ObjectWriter ¶
type ObjectWriter interface { driver.ObjectWriter }
ObjectWriter is a handle for creating an Object
func CreateContext ¶
func CreateContext(ctx context.Context, url string) (ObjectWriter, error)
Create an ObjectWriter handle
type VisitorConcurrency ¶
type VisitorConcurrency interface { driver.Visitor driver.VisitorConcurrency }
VisitorConcurrency is used to extend Visitor to control the concurrency of recursive descent.
type VisitorPredicate ¶
type VisitorPredicate interface { driver.Visitor driver.VisitorPredicate }
VisitorPredicate is used to extend Visitor to control which directories are visited
type VisitorTraversal ¶
type VisitorTraversal interface { driver.Visitor driver.VisitorTraversal }
VisitorTraversal is used to extend Visitor to control depth-first vs breadth-first traversal. The default for visitors that do not implement VisitorTraversal is breadth-first.