Versions in this module Expand all Collapse all v0 v0.1.0 Jun 15, 2015 Changes in this version + type Grant struct + Grantee string + Permission uint16 + Subject string + func CollapseStatements(statements []*Statement, useExpired bool) ([]*Grant, time.Time, error) + type Statement struct + func CreateStatement(grants, revocations io.Reader, expiration time.Duration, ...) (*Statement, error) + func FilterStatements(grants []*Grant) ([]*Statement, error) + func LoadStatement(r io.Reader, authority *x509.CertPool) (*Statement, error) + func (s *Statement) Bytes() ([]byte, error) + func (s *Statement) IsExpired() bool + type TrustGraph interface + GetGrants func(libtrust.PublicKey, string, uint16) ([][]*Grant, error) + Verify func(libtrust.PublicKey, string, uint16) (bool, error) + func NewMemoryGraph(grants []*Grant) TrustGraph