Help us shape the future of Go! Take the 2026 Go Developer Survey

policy

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy interface {
	//The namespace achieves two things
	// a) it bounds the search of DOTs when forming a proof, even if the policy
	//    comparison functions are heavyweight
	// b) it defines the entity with absolute authority for policies interacting
	//    with subjects in this domain
	Namespace() []byte
	//This is an "unguessable" id that is used to encrypt the policy
	//e.g the URI + some salt
	PartitionID() [][]byte
	//This is a guessable id that allows the recipient to decrypt the
	//Partition ID
	//e.g the namespace
	PartitionLabelID() [][]byte
	//These are the keys that should be included in the DOT for decrypting
	//the main partition of incoming dots
	//Probably just the PartitionID without the salt
	// array of slots
	DelegatedPartitionKeyID() [][][]byte

	//TODO make general
	URI() string
	Permissions() []string
}

Jump to

Keyboard shortcuts

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