Documentation ¶
Overview ¶
Package accesscontroller defines a default access controller for IPFS Log, it won't actually check anything.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanAppendAdditionalContext ¶
type CanAppendAdditionalContext interface {
GetLogEntries() []LogEntry
}
type Default ¶
type Default struct { }
func (*Default) CanAppend ¶
func (d *Default) CanAppend(LogEntry, identityprovider.Interface, CanAppendAdditionalContext) error
CanAppend Checks whether a given identity can append an entry to the log. This implementation allows anyone to write to the log.
type Interface ¶
type Interface interface {
CanAppend(LogEntry, identityprovider.Interface, CanAppendAdditionalContext) error
}
type LogEntry ¶
type LogEntry interface { GetPayload() []byte GetIdentity() *identityprovider.Identity }
Click to show internal directories.
Click to hide internal directories.