aboutsummaryrefslogtreecommitdiff
path: root/object/tag/tag.go
blob: a48de26bd14fbd7ee5dfc2f3085333ca0330c71d (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Package tag provides parsed annotated tag objects and tag serialization.
//
// It parses annotated tags into ordinary Go values for reading and
// construction. It does not preserve the exact original byte layout needed for
// signature verification; callers that need signature-verification payload
// fidelity should use [lindenii.org/go/furgit/object/signed/tag].
package tag

import (
	objectid "lindenii.org/go/furgit/object/id"
	objectsignature "lindenii.org/go/furgit/object/signature"
	objecttype "lindenii.org/go/furgit/object/type"
)

// Tag represents a fully materialized Git annotated tag object.
//
// Labels: MT-Unsafe.
type Tag struct {
	TargetID   objectid.ObjectID
	TargetType objecttype.Type
	Name       []byte
	Tagger     *objectsignature.Signature
	Message    []byte
}