Documentation ¶
Index ¶
- Constants
- Variables
- func Not_Found(err error) bool
- func Read_Config(home string)
- type Errno
- type List
- type ListEntry
- type Meta
- type ShardedList
- type Stream
- func (sr *Stream) Finalize() (*Meta, error)
- func (sr *Stream) Get_Chunk(buf []byte, off uint64) error
- func (sr *Stream) Get_Default_Chunk_Size() uint
- func (sr *Stream) Get_Meta() *Meta
- func (sr *Stream) Object_Exists() bool
- func (sr *Stream) Put_Chunk(buf []byte, off uint64) error
- func (sr *Stream) Put_No_Data() error
- func (sr *Stream) Release()
- func (sr *Stream) Set_Chunk_Size_Attr(size uint) error
- func (sr *Stream) Stop() error
- type Tenant
- func (tc *Tenant) Create_Bucket(bucket string) error
- func (tc *Tenant) Delete_Bucket(bucket string) error
- func (tc *Tenant) Delete_Object(bucket, object string) error
- func (tc *Tenant) Get(bucket, object string, buf []byte, off uint64) error
- func (tc *Tenant) Get_Bucket_Meta(bucket string) (*Meta, error)
- func (tc *Tenant) Get_List(bucket, object string, pattern string, count int) (*List, error)
- func (tc *Tenant) Get_Meta(bucket, object string) (*Meta, error)
- func (tc *Tenant) Open_Read_Stream(bucket, object string, iocount uint) (*Stream, error)
- func (tc *Tenant) Open_Write_Stream(bucket, object string, iocount uint) (*Stream, error)
- func (tc *Tenant) Put(bucket, object string, buf []byte, off uint64) error
- func (tc *Tenant) Put_Empty_Object(bucket, object string) error
- func (tc *Tenant) Release()
- func (tc *Tenant) Sharded_Get_List(bucket string, name string, shards int, marker string, count int) (*ShardedList, error)
Constants ¶
View Source
const CACHE_TIME time.Duration = 5 * 60
View Source
const MAX_POOLED_PER_TENANT uint = 10
View Source
const MAX_TENANT_REUSE uint = 10
View Source
const TENANT_RELEASE_DELAY time.Duration = 5 * 1000 * 1000 * 1000 /* 5s in ns */
Variables ¶
View Source
var Config *string
Functions ¶
func Read_Config ¶
func Read_Config(home string)
Types ¶
type ShardedList ¶
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) Get_Default_Chunk_Size ¶
func (*Stream) Object_Exists ¶
func (*Stream) Put_No_Data ¶
func (*Stream) Set_Chunk_Size_Attr ¶
type Tenant ¶
type Tenant struct {
// contains filtered or unexported fields
}
func (*Tenant) Create_Bucket ¶
func (*Tenant) Delete_Bucket ¶
func (*Tenant) Delete_Object ¶
func (*Tenant) Open_Read_Stream ¶
func (*Tenant) Open_Write_Stream ¶
func (*Tenant) Put_Empty_Object ¶
func (*Tenant) Sharded_Get_List ¶
Click to show internal directories.
Click to hide internal directories.