Documentation
¶
Overview ¶
Package authcache provides the legacy authorization cache adapter.
Deprecated: use github.com/faustbrian/go-authorization/adapters/cache. This package remains supported for the longer of 180 days after successor public availability and two subsequently published stable root-module minor releases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrManifestTooLarge = adapter.ErrManifestTooLarge ErrInvalidRevision = adapter.ErrInvalidRevision ErrNilRepository = adapter.ErrNilRepository )
Functions ¶
func RepositoryLoader ¶
func RepositoryLoader( repository policy.Repository, ) (cache.Loader[authorization.Revision, policy.Manifest], error)
Types ¶
type ManifestCodec ¶
type ManifestCodec struct {
MaxEncodedSize int
}
type RevisionKeyEncoder ¶
type RevisionKeyEncoder struct{}
func (RevisionKeyEncoder) EncodeKey ¶
func (RevisionKeyEncoder) EncodeKey(revision authorization.Revision) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.