object_fmt_digest

package
v0.1.10 Latest Latest
Warning

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

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

Documentation

Overview

framework for generating digests from objects according to specific formats

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyTai = newPkgError("empty tai")

Functions

func FormatForPurposeOrError

func FormatForPurposeOrError(
	purpose string,
) (format format, err error)

func GetFormatForPurpose

func GetFormatForPurpose(
	purpose string,
) (format format)

func WriteDigest

func WriteDigest(
	formatId string,
	context FormatterContext,
	output mad_domain_interfaces.MarklIdMutable,
) (err error)

Types

type CLIFlag

type CLIFlag struct {
	DuplicateObjectDigestFormats []string
	Duplicates                   map[string]int
}

func (*CLIFlag) SetFlagDefinitions

func (flag *CLIFlag) SetFlagDefinitions(flagSet interfaces.CLIFlagDefinitions)

type FormatterContext

type FormatterContext interface {
	objects.EncoderContext
	GetObjectId() *ids.ObjectId
}

type UniqueObject

type UniqueObject struct {
	DuplicateCount int
	Object         FormatterContext
}

Source Files

  • cli_flag_definition.go
  • errors.go
  • format.go
  • main.go

Jump to

Keyboard shortcuts

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