blob

package
v0.0.0-...-71dd0ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxRetryCnt = 100
)
View Source
const (
	NumKeySegments = 10
)

Variables

This section is empty.

Functions

func GenKey

func GenKey(clusterName, volName string, partitionID uint32, fileID uint64, objID int64, size, crc uint32) string

func NewBlobDeletePacket

func NewBlobDeletePacket(dp *wrapper.DataPartition, fileID uint64, objID int64) *proto.Packet

func NewBlobReadPacket

func NewBlobReadPacket(partitionID uint32, fileID uint64, objID int64, size uint32) *proto.Packet

func NewBlobWritePacket

func NewBlobWritePacket(dp *wrapper.DataPartition, data []byte) *proto.Packet

func ParseKey

func ParseKey(key string) (clusterName, volName string, partitionID uint32, fileID uint64, objID int64, size, crc uint32, err error)

func ParsePacket

func ParsePacket(p *proto.Packet) (partitionID uint32, fileID uint64, objID int64, crc uint32)

Types

type BlobClient

type BlobClient struct {
	// contains filtered or unexported fields
}

func NewBlobClient

func NewBlobClient(volname, masters string) (*BlobClient, error)

func (*BlobClient) Delete

func (client *BlobClient) Delete(key string) (err error)

func (*BlobClient) Read

func (client *BlobClient) Read(key string) (data []byte, err error)

func (*BlobClient) Write

func (client *BlobClient) Write(data []byte) (key string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL