Documentation
¶
Index ¶
Constants ¶
View Source
const (
// MaxChunkBytes contains the maximum number of bytes in a chunk (for Read/Write streaming operations)
MaxChunkBytes = 1024 * 1024
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IO ¶
type IO interface { Init(ctx context.Context, opts *InitOptions) error Write(ctx context.Context, key string) (Writer, error) Read(ctx context.Context, key string) (Reader, error) Head(ctx context.Context, key string) (*Info, error) Delete(ctx context.Context, key string) (bool, error) List(ctx context.Context, key string) (util.NextIterator[[]File], error) }
type InitOptions ¶
type InitOptions struct {
Create *bool
}
func (*InitOptions) GetCreate ¶
func (i *InitOptions) GetCreate() bool
Click to show internal directories.
Click to hide internal directories.