Documentation
      ¶
    
    
  
    
  
    Index ¶
- func AddAttribute(obj *objectSDK.Object, key, val string)
 - func AddPayload(obj *objectSDK.Object, size int)
 - func AddressFromObject(t testing.TB, obj *objectSDK.Object) oid.Address
 - func GenerateObject() *objectSDK.Object
 - func GenerateObjectWithCID(cnr cid.ID) *objectSDK.Object
 - func GenerateObjectWithCIDWithPayload(cnr cid.ID, data []byte) *objectSDK.Object
 - func GenerateObjectWithSize(sz int) *objectSDK.Object
 - type AddressGenerator
 - type ObjectGenerator
 - type OverwriteObjGenerator
 - type RandAddrGenerator
 - type RandObjGenerator
 - type SeqAddrGenerator
 - type SeqObjGenerator
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAttribute ¶
func AddPayload ¶
func GenerateObject ¶
func GenerateObjectWithSize ¶ added in v0.37.0
Types ¶
type AddressGenerator ¶
AddressGenerator is the interface of types that generate object addresses.
type ObjectGenerator ¶
ObjectGenerator is the interface of types that generate object entries.
type OverwriteObjGenerator ¶
OverwriteObjGenerator is an ObjectGenerator that generates entries with random payloads of size objSize and at most maxObjects distinct IDs.
func (*OverwriteObjGenerator) Next ¶
func (g *OverwriteObjGenerator) Next() *objectSDK.Object
type RandAddrGenerator ¶
type RandAddrGenerator uint64
RandAddrGenerator is an addressGenerator that generates random addresses in the given range.
func (RandAddrGenerator) Next ¶
func (g RandAddrGenerator) Next() oid.Address
type RandObjGenerator ¶
type RandObjGenerator struct {
	ObjSize uint64
}
    RandObjGenerator is an ObjectGenerator that generates entries with random IDs and payloads of size objSize.
func (*RandObjGenerator) Next ¶
func (g *RandObjGenerator) Next() *objectSDK.Object
type SeqAddrGenerator ¶
type SeqAddrGenerator struct {
	MaxID uint64
	// contains filtered or unexported fields
}
    SeqAddrGenerator is an AddressGenerator that generates addresses sequentially and wraps around the given max ID.
func (*SeqAddrGenerator) Next ¶
func (g *SeqAddrGenerator) Next() oid.Address
type SeqObjGenerator ¶
type SeqObjGenerator struct {
	ObjSize uint64
	// contains filtered or unexported fields
}
    SeqObjGenerator is an ObjectGenerator that generates entries with random payloads of size objSize and sequential IDs.
func (*SeqObjGenerator) Next ¶
func (g *SeqObjGenerator) Next() *objectSDK.Object