accesscontroller

package
v1.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: Apache-2.0, MIT Imports: 1 Imported by: 12

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

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL