deck

package
v0.4.6-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FossilDecode

func FossilDecode(s string) string

func FossilEncode

func FossilEncode(s string) string

func VerifyZ

func VerifyZ(data []byte) error

Types

type ArtifactType

type ArtifactType int
const (
	Checkin ArtifactType = iota
	Wiki
	Ticket
	Event
	Cluster
	ForumPost
	Attachment
	Control
)

type AttachmentCard

type AttachmentCard struct {
	Filename string
	Target   string
	Source   string
}

type CherryPick

type CherryPick struct {
	IsBackout bool
	Target    string
	Baseline  string
}

type Deck

type Deck struct {
	Type ArtifactType
	A    *AttachmentCard
	B    string
	C    string
	D    time.Time
	E    *EventCard
	F    []FileCard
	G    string
	H    string
	I    string
	J    []TicketField
	K    string
	L    string
	M    []string
	N    string
	P    []string
	Q    []CherryPick
	R    string
	T    []TagCard
	U    string
	W    []byte
	Z    string
}

func Parse

func Parse(data []byte) (*Deck, error)

func (*Deck) ComputeR

func (d *Deck) ComputeR(getContent func(uuid string) ([]byte, error)) (string, error)

func (*Deck) Marshal

func (d *Deck) Marshal() ([]byte, error)

type EventCard

type EventCard struct {
	Date time.Time
	UUID string
}

type FileCard

type FileCard struct {
	Name    string
	UUID    string
	Perm    string
	OldName string
}

type TagCard

type TagCard struct {
	Type  TagType
	Name  string
	UUID  string
	Value string
}

type TagType

type TagType byte
const (
	TagSingleton   TagType = '+'
	TagPropagating TagType = '*'
	TagCancel      TagType = '-'
)

type TicketField

type TicketField struct {
	Name  string
	Value string
}

Jump to

Keyboard shortcuts

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