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

policyrecord

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package policyrecord bounds serialized authorization records before decoding.

Index

Constants

View Source
const MaxBytes = 64 << 10

MaxBytes is the maximum encoded size of one key, account, user, or team record.

Variables

View Source
var ErrTooLarge = errors.New("authorization record exceeds size limit")

ErrTooLarge refuses oversized policy without treating it as absent.

Functions

func Marshal

func Marshal(value any) ([]byte, error)

Marshal prevents repository writes that bounded policy reads cannot accept.

Types

This section is empty.

Jump to

Keyboard shortcuts

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