Versions in this module Expand all Collapse all v0 v0.2.0 Jan 23, 2024 Changes in this version + const DefaultExpirationDelta + type AccessDecisionRepository struct + func NewAccessDecisionRepository(store storetypes.KVStore) *AccessDecisionRepository + func (r *AccessDecisionRepository) Delete(ctx context.Context, id string) error + func (r *AccessDecisionRepository) Get(ctx context.Context, id string) (*types.AccessDecision, error) + func (r *AccessDecisionRepository) List(ctx context.Context) ([]*types.AccessDecision, error) + func (r *AccessDecisionRepository) ListIds(ctx context.Context) ([]string, error) + func (r *AccessDecisionRepository) Set(ctx context.Context, decision *types.AccessDecision) error + type EvaluateAccessRequestsCommand struct + Actor authtypes.AccountI + CreationTime *prototypes.Timestamp + Creator authtypes.AccountI + CurrentHeight uint64 + Operations []*types.Operation + Policy *types.Policy + func (c *EvaluateAccessRequestsCommand) Execute(ctx context.Context, engine auth_engine.AuthEngine, repository Repository, ...) (*types.AccessDecision, error) + type GogoProtoMarshaler struct + func NewGogoProtoMarshaler[T gogoproto.Message](factory func() T) *GogoProtoMarshaler[T] + func (m *GogoProtoMarshaler[T]) Marshal(t *T) ([]byte, error) + func (m *GogoProtoMarshaler[T]) Unmarshal(bytes []byte) (T, error) + type ParamsRepository interface + GetDefaults func(context.Context) (*types.DecisionParams, error) + type Repository interface + Delete func(ctx context.Context, id string) error + Get func(ctx context.Context, id string) (*types.AccessDecision, error) + List func(ctx context.Context) ([]*types.AccessDecision, error) + ListIds func(ctx context.Context) ([]string, error) + Set func(ctx context.Context, decision *types.AccessDecision) error + type StaticParamsRepository struct + func (r *StaticParamsRepository) GetDefaults(ctx context.Context) (*types.DecisionParams, error) + type VerifyAccessRequestCommand struct + AccessRequest *types.AccessRequest + Policy *types.Policy + func (c *VerifyAccessRequestCommand) Execute(ctx context.Context, engine auth_engine.AuthEngine) error