Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddGroupMember(ctx sdk.Context, groupID math.Uint, member sdk.AccAddress) error
- func (k Keeper) DeletePolicy(ctx sdk.Context, principal *types.Principal, ...) (math.Uint, error)
- func (k Keeper) ExistAccountPolicyForResource(ctx sdk.Context, resourceType resource.ResourceType, resourceID math.Uint) bool
- func (k Keeper) ExistGroupMemberForGroup(ctx sdk.Context, groupId math.Uint) bool
- func (k Keeper) ExistGroupPolicyForResource(ctx sdk.Context, resourceType resource.ResourceType, resourceID math.Uint) bool
- func (k Keeper) ForceDeleteAccountPolicyForResource(ctx sdk.Context, maxDelete, deletedTotal uint64, ...) (uint64, bool)
- func (k Keeper) ForceDeleteGroupMembers(ctx sdk.Context, maxDelete, deletedTotal uint64, groupId math.Uint) (uint64, bool)
- func (k Keeper) ForceDeleteGroupPolicyForResource(ctx sdk.Context, maxDelete, deletedTotal uint64, ...) (uint64, bool)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetGroupMember(ctx sdk.Context, groupID math.Uint, member sdk.AccAddress) (*types.GroupMember, bool)
- func (k Keeper) GetGroupMemberByID(ctx sdk.Context, groupMemberID math.Uint) (*types.GroupMember, bool)
- func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)
- func (k Keeper) GetPolicyByID(ctx sdk.Context, policyID math.Uint) (*types.Policy, bool)
- func (k Keeper) GetPolicyForAccount(ctx sdk.Context, resourceID math.Uint, resourceType resource.ResourceType, ...) (policy *types.Policy, isFound bool)
- func (k Keeper) GetPolicyForGroup(ctx sdk.Context, resourceID math.Uint, resourceType resource.ResourceType, ...) (policy *types.Policy, isFound bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MaximumPolicyGroupSize(ctx sdk.Context) (res uint64)
- func (k Keeper) MaximumStatementsNum(ctx sdk.Context) (res uint64)
- func (k Keeper) MustGetPolicyByID(ctx sdk.Context, policyID math.Uint) *types.Policy
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PutPolicy(ctx sdk.Context, policy *types.Policy) (math.Uint, error)
- func (k Keeper) RemoveGroupMember(ctx sdk.Context, groupID math.Uint, member sdk.AccAddress) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error
- func (k Keeper) VerifyPolicy(ctx sdk.Context, resourceID math.Uint, resourceType resource.ResourceType, ...) types.Effect
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 storetypes.StoreKey, accountKeeper types.AccountKeeper, authority string, ) *Keeper
func (Keeper) AddGroupMember ¶
func (Keeper) DeletePolicy ¶
func (Keeper) ExistAccountPolicyForResource ¶ added in v0.2.0
func (Keeper) ExistGroupMemberForGroup ¶ added in v0.2.0
func (Keeper) ExistGroupPolicyForResource ¶ added in v0.2.0
func (Keeper) ForceDeleteAccountPolicyForResource ¶ added in v0.2.0
func (k Keeper) ForceDeleteAccountPolicyForResource(ctx sdk.Context, maxDelete, deletedTotal uint64, resourceType resource.ResourceType, resourceID math.Uint) (uint64, bool)
ForceDeleteAccountPolicyForResource deletes all individual accounts policy enforced on resources, if
func (Keeper) ForceDeleteGroupMembers ¶ added in v0.2.0
func (k Keeper) ForceDeleteGroupMembers(ctx sdk.Context, maxDelete, deletedTotal uint64, groupId math.Uint) (uint64, bool)
ForceDeleteGroupMembers deletes group members when user deletes a group
func (Keeper) ForceDeleteGroupPolicyForResource ¶ added in v0.2.0
func (k Keeper) ForceDeleteGroupPolicyForResource(ctx sdk.Context, maxDelete, deletedTotal uint64, resourceType resource.ResourceType, resourceID math.Uint) (uint64, bool)
ForceDeleteGroupPolicyForResource deletes group policy enforced on resource
func (Keeper) GetAuthority ¶ added in v0.2.0
func (Keeper) GetGroupMember ¶ added in v0.0.10
func (k Keeper) GetGroupMember(ctx sdk.Context, groupID math.Uint, member sdk.AccAddress) (*types.GroupMember, bool)
func (Keeper) GetGroupMemberByID ¶ added in v0.0.10
func (Keeper) GetPolicyByID ¶
func (Keeper) GetPolicyForAccount ¶ added in v0.0.8
func (Keeper) GetPolicyForGroup ¶ added in v0.0.8
func (Keeper) MaximumPolicyGroupSize ¶ added in v0.0.10
func (Keeper) MaximumStatementsNum ¶
func (Keeper) MustGetPolicyByID ¶
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveGroupMember ¶
func (Keeper) VerifyPolicy ¶
func (k Keeper) VerifyPolicy(ctx sdk.Context, resourceID math.Uint, resourceType resource.ResourceType, operator sdk.AccAddress, action types.ActionType, opts *types.VerifyOptions) types.Effect
Click to show internal directories.
Click to hide internal directories.