Documentation
¶
Index ¶
- type Authority
- type Root
- func (r Root) Add(authority *Authority, scope Scope, value string) (Root, bool, error)
- func (r Root) Contains(authority *Authority, scope Scope, value string) (bool, error)
- func (r Root) Delete(authority *Authority, scope Scope, value string) (Root, bool, error)
- func (r Root) Len(authority *Authority, scope Scope) (int, error)
- func (r Root) Range(authority *Authority, scope Scope, visit func(string) bool) error
- func (r Root) SameRoot(authority *Authority, scope Scope, other Root) (bool, error)
- func (r Root) Update(authority *Authority, scope Scope, membership map[string]bool) (Root, error)
- func (r Root) ValidateAuthentication(authority *Authority) error
- func (r Root) ValidateOwnership(authority *Authority, scope Scope) error
- func (r Root) Values(authority *Authority, scope Scope) ([]string, error)
- type Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authority ¶
type Authority struct {
// contains filtered or unexported fields
}
Authority owns one isolated family of immutable roots.
type Root ¶
type Root struct {
// contains filtered or unexported fields
}
Root is an opaque immutable ordered-set root.
func BuildPackedSorted ¶
BuildPackedSorted creates an authenticated compact root from strictly increasing values.
func BuildSorted ¶
BuildSorted creates an authenticated root from strictly increasing values.
func (Root) ValidateAuthentication ¶
ValidateAuthentication verifies root ownership and its immutable representation in O(1).
func (Root) ValidateOwnership ¶
ValidateOwnership verifies provenance and exact scope ownership in O(1).
Click to show internal directories.
Click to hide internal directories.