Documentation
¶
Index ¶
Constants ¶
const ( // KeyID is a filter key to object ID field. KeyID = "ID" // KeyTombstone is a filter key to tombstone header. KeyTombstone = "TOMBSTONE" // KeyStorageGroup is a filter key to storage group link. KeyStorageGroup = "STORAGE_GROUP" // KeyNoChildren is a filter key to objects w/o child links. KeyNoChildren = "LEAF" // KeyParent is a filter key to parent link. KeyParent = "PARENT" // KeyHasParent is a filter key to objects with parent link. KeyHasParent = "HAS_PAR" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressInfo ¶
AddressInfo is an interface of the container of object request by Address.
type Connection ¶
Connection is an interface of network connection.
type GetInfo ¶
type GetInfo interface {
AddressInfo
}
GetInfo is an interface of the container of object Get operation parameters.
type MetaInfo ¶
type MetaInfo interface {
GetTTL() uint32
GetTimeout() time.Duration
service.SessionTokenSource
GetRaw() bool
Type() object.RequestType
service.BearerTokenSource
service.ExtendedHeadersSource
}
MetaInfo is an interface of the container of cross-operation values.
type ObjectTransport ¶
type ObjectTransport interface {
Transport(context.Context, ObjectTransportParams)
}
ObjectTransport is an interface of the executor of object remote operations.
type ObjectTransportParams ¶
type ObjectTransportParams struct {
TransportInfo MetaInfo
TargetNode multiaddr.Multiaddr
ResultHandler ResultHandler
}
ObjectTransportParams groups the parameters of remote object operation.
type PutInfo ¶
type PutInfo interface {
MetaInfo
GetHead() *object.Object
Payload() io.Reader
CopiesNumber() uint32
}
PutInfo is an interface of the container of object Put operation parameters.
type RangeHashInfo ¶
type RangeHashInfo interface {
AddressInfo
GetRanges() []object.Range
GetSalt() []byte
}
RangeHashInfo is an interface of the container of object GetRangeHash operation parameters.
type RangeInfo ¶
type RangeInfo interface {
AddressInfo
GetRange() object.Range
}
RangeInfo is an interface of the container of object GetRange operation parameters.
type ResultHandler ¶
type ResultHandler interface {
HandleResult(context.Context, multiaddr.Multiaddr, interface{}, error)
}
ResultHandler is an interface of remote object operation's result handler.
type SearchInfo ¶
SearchInfo is an interface of the container of object Search operation parameters.