Versions in this module Expand all Collapse all v0 v0.0.3 Apr 21, 2025 v0.0.2 Apr 21, 2025 Changes in this version + func New(o ...Option) accesscontrol.Controller + type GranteeListMock interface + Add func(publicKeys []*ecdsa.PublicKey) error + Get func() []*ecdsa.PublicKey + Remove func(removeList []*ecdsa.PublicKey) error + Save func() (swarm.Address, error) + type GranteeListStructMock struct + func NewGranteeList() *GranteeListStructMock + func (g *GranteeListStructMock) Add(addList []*ecdsa.PublicKey) error + func (g *GranteeListStructMock) Get() []*ecdsa.PublicKey + func (g *GranteeListStructMock) Remove(removeList []*ecdsa.PublicKey) error + func (g *GranteeListStructMock) Save() (swarm.Address, error) + type Option interface + func WithAcceptAll() Option + func WithHistory(h accesscontrol.History, ref string) Option + func WithPublisher(ref string) Option + type SessionMock struct + KeyFunc func(publicKey *ecdsa.PublicKey, nonces [][]byte) ([][]byte, error) + func NewFromKeystore(ks keystore.Service, tag, password string, ...) *SessionMock + func NewSessionMock(key *ecdsa.PrivateKey) *SessionMock + func (s *SessionMock) Key(publicKey *ecdsa.PublicKey, nonces [][]byte) ([][]byte, error)