Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddGroupMember(ctx sdk.Context, groupMemberInfo types.GroupMemberInfo) error
- func (k Keeper) CreateBucket(ctx sdk.Context, bucketInfo types.BucketInfo) error
- func (k Keeper) CreateGroup(ctx sdk.Context, groupInfo types.GroupInfo) error
- func (k Keeper) CreateObject(ctx sdk.Context, objectInfo types.ObjectInfo) error
- func (k Keeper) DeleteBucket(ctx sdk.Context, bucketName string) error
- func (k Keeper) DeleteGroup(ctx sdk.Context, ownerAddr string, groupName string) error
- func (k Keeper) DeleteObject(ctx sdk.Context, bucketName string, objectName string)
- func (k Keeper) GetBucket(ctx sdk.Context, bucketName string) (bucketInfo types.BucketInfo, found bool)
- func (k Keeper) GetBucketId(ctx sdk.Context) math.Uint
- func (k Keeper) GetGroup(ctx sdk.Context, ownerAddr string, groupName string) (groupInfo types.GroupInfo, found bool)
- func (k Keeper) GetGroupId(ctx sdk.Context) math.Uint
- func (k Keeper) GetObject(ctx sdk.Context, bucketName string, objectName string) (objectInfo types.ObjectInfo, found bool)
- func (k Keeper) GetObjectID(ctx sdk.Context) math.Uint
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) HasGroupMember(ctx sdk.Context, groupMemberKey []byte) bool
- func (k Keeper) HeadBucket(goCtx context.Context, req *types.QueryHeadBucketRequest) (*types.QueryHeadBucketResponse, error)
- func (k Keeper) HeadObject(goCtx context.Context, req *types.QueryHeadObjectRequest) (*types.QueryHeadObjectResponse, error)
- func (k Keeper) ListBuckets(goCtx context.Context, req *types.QueryListBucketsRequest) (*types.QueryListBucketsResponse, error)
- func (k Keeper) ListObjects(goCtx context.Context, req *types.QueryListObjectsRequest) (*types.QueryListObjectsResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MaxPayloadSize(ctx sdk.Context) (res uint64)
- func (k Keeper) MaxSegmentSize(ctx sdk.Context) (res uint64)
- func (k Keeper) MustGetBucket(ctx sdk.Context, bucketName string) (bucketInfo types.BucketInfo)
- func (k Keeper) MustGetObject(ctx sdk.Context, bucketName string, objectName string) (objectInfo types.ObjectInfo)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RedundantDataChunkNum(ctx sdk.Context) (res uint32)
- func (k Keeper) RedundantParityChunkNum(ctx sdk.Context) (res uint32)
- func (k Keeper) RemoveGroupMember(ctx sdk.Context, groupId math.Uint, member string) error
- func (k Keeper) SetBucket(ctx sdk.Context, bucketInfo types.BucketInfo)
- func (k Keeper) SetObject(ctx sdk.Context, objectInfo types.ObjectInfo)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) VerifySPAndSignature(ctx sdk.Context, spAddr string, sigData []byte, signature []byte) error
- type Sequence
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, accountKeeper types.AccountKeeper, spKeeper types.SpKeeper, paymentKeeper types.PaymentKeeper, ) *Keeper
func (Keeper) AddGroupMember ¶
func (Keeper) CreateBucket ¶
func (Keeper) CreateGroup ¶
func (Keeper) CreateObject ¶
func (Keeper) DeleteGroup ¶
func (Keeper) DeleteObject ¶
func (Keeper) HasGroupMember ¶
func (Keeper) HeadBucket ¶ added in v0.0.6
func (k Keeper) HeadBucket(goCtx context.Context, req *types.QueryHeadBucketRequest) (*types.QueryHeadBucketResponse, error)
func (Keeper) HeadObject ¶ added in v0.0.6
func (k Keeper) HeadObject(goCtx context.Context, req *types.QueryHeadObjectRequest) (*types.QueryHeadObjectResponse, error)
func (Keeper) ListBuckets ¶ added in v0.0.6
func (k Keeper) ListBuckets(goCtx context.Context, req *types.QueryListBucketsRequest) (*types.QueryListBucketsResponse, error)
func (Keeper) ListObjects ¶ added in v0.0.6
func (k Keeper) ListObjects(goCtx context.Context, req *types.QueryListObjectsRequest) (*types.QueryListObjectsResponse, error)
func (Keeper) MustGetBucket ¶
func (Keeper) MustGetObject ¶ added in v0.0.6
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RedundantDataChunkNum ¶
func (Keeper) RedundantParityChunkNum ¶
func (Keeper) RemoveGroupMember ¶
func (Keeper) SetBucket ¶ added in v0.0.6
func (k Keeper) SetBucket(ctx sdk.Context, bucketInfo types.BucketInfo)
type Sequence ¶
type Sequence struct {
// contains filtered or unexported fields
}
sequence is a persistent unique key generator based on a counter.
func NewSequence ¶
func (Sequence) InitVal ¶
InitVal sets the start value for the sequence. It must be called only once on an empty DB. Otherwise an error is returned when the key exists. The given start value is stored as current value.
It is recommended to call this method only for a sequence start value other than `1` as the method consumes unnecessary gas otherwise. A scenario would be an import from genesis.
Click to show internal directories.
Click to hide internal directories.