Documentation ¶
Overview ¶
Package bucket is contains utilities for managing bucket based backends
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAlreadyDeleted is returned when an already deleted // bucket is passed to Remove ErrAlreadyDeleted = errors.New("bucket already deleted") )
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache stores whether buckets are available and their IDs
func (*Cache) Create ¶
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
func (*Cache) IsDeleted ¶
IsDeleted returns true if the bucket has definitely been deleted by us, false otherwise.
func (*Cache) MarkDeleted ¶
MarkDeleted marks the bucket as being deleted
Click to show internal directories.
Click to hide internal directories.