 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const CName = "coordinator.acl"
    Variables ¶
      View Source
      
  
var ErrLimitExceed = errors.New("limit exceed")
    Functions ¶
This section is empty.
Types ¶
type AclService ¶
type AclService interface {
	AddRecord(ctx context.Context, spaceId string, rec *consensusproto.RawRecord, limits Limits) (result *consensusproto.RawRecordWithId, err error)
	RecordsAfter(ctx context.Context, spaceId, aclHead string) (result []*consensusproto.RawRecordWithId, err error)
	Permissions(ctx context.Context, identity crypto.PubKey, spaceId string) (res list.AclPermissions, err error)
	OwnerPubKey(ctx context.Context, spaceId string) (ownerIdentity crypto.PubKey, err error)
	ReadState(ctx context.Context, spaceId string, f func(s *list.AclState) error) (err error)
	HasRecord(ctx context.Context, spaceId, recordId string) (has bool, err error)
	app.ComponentRunnable
}
    func New ¶
func New() AclService
 Click to show internal directories. 
   Click to hide internal directories.