key_bytes

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO make this less fragile by guaranteeing unique values
	Unknown          = Binary(iota)
	ContentLength    = Binary('C')
	Sigil            = Binary('S')
	Blob             = Binary('A')
	RepoPubKey       = Binary('P')
	RepoSig          = Binary('q')
	Description      = Binary('B')
	Tag              = Binary('E')
	Genre            = Binary('G')
	ObjectId         = Binary('K')
	Comment          = Binary('k')
	Tai              = Binary('T')
	Type             = Binary('t')
	References       = Binary('R')
	ReferenceAliases = Binary('r')
	BlobReferences   = Binary('b')

	// TODO rename to match purposes
	SigParentMetadataParentObjectId = Binary('M')
	DigestMetadataParentObjectId    = Binary('s')
	DigestMetadataWithoutTai        = Binary('n') // TODO move to key-values
	DigestMetadata                  = Binary('m')

	ExternalObjectId = Binary('e')

	Field = Binary('F')

	CacheDormant     = Binary('a')
	CacheTagImplicit = Binary('I')
	CacheTags        = Binary('x')
	CacheTags2       = Binary('y')
)

Variables

View Source
var ErrInvalid = newPkgError("invalid key")

Functions

This section is empty.

Types

type Binary

type Binary byte

func (Binary) ReadByte

func (key Binary) ReadByte() (byte, error)

func (*Binary) ReadFrom

func (key *Binary) ReadFrom(r io.Reader) (n int64, err error)

func (*Binary) Reset

func (key *Binary) Reset()

func (Binary) String

func (i Binary) String() string

func (*Binary) WriteByte

func (key *Binary) WriteByte(b byte) (err error)

func (Binary) WriteTo

func (key Binary) WriteTo(w io.Writer) (n int64, err error)

Source Files

  • binary_string.go
  • errors.go
  • main.go

Jump to

Keyboard shortcuts

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