object_metadata_fmt_hyphence

package
v0.1.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrBlobFormatterFailed

type ErrBlobFormatterFailed struct {
	*exec.ExitError
}

func MakeErrBlobFormatterFailed

func MakeErrBlobFormatterFailed(
	err *exec.ExitError,
) ErrBlobFormatterFailed

func (ErrBlobFormatterFailed) Error

func (err ErrBlobFormatterFailed) Error() string

func (ErrBlobFormatterFailed) GetErrorType

func (err ErrBlobFormatterFailed) GetErrorType() pkgErrDisamb

func (ErrBlobFormatterFailed) Is

func (err ErrBlobFormatterFailed) Is(target error) bool

func (ErrBlobFormatterFailed) ShouldShowStackTrace

func (err ErrBlobFormatterFailed) ShouldShowStackTrace() bool

type ErrHasInlineBlobAndFilePath

type ErrHasInlineBlobAndFilePath struct {
	BlobFD       fd.FD
	InlineDigest markl.Id
}

func MakeErrHasInlineBlobAndFilePath

func MakeErrHasInlineBlobAndFilePath(
	blobFD *fd.FD,
	inlineBlobDigest mad_domain_interfaces.MarklId,
) (err *ErrHasInlineBlobAndFilePath)

func (*ErrHasInlineBlobAndFilePath) Error

func (err *ErrHasInlineBlobAndFilePath) Error() string

func (*ErrHasInlineBlobAndFilePath) GetErrorType

func (err *ErrHasInlineBlobAndFilePath) GetErrorType() pkgErrDisamb

func (*ErrHasInlineBlobAndFilePath) Is

func (err *ErrHasInlineBlobAndFilePath) Is(target error) bool

type ErrHasInlineBlobAndMetadataDigest

type ErrHasInlineBlobAndMetadataDigest struct {
	Inline mad_domain_interfaces.MarklId
	// contains filtered or unexported fields
}

func MakeErrHasInlineBlobAndMetadataBlobId

func MakeErrHasInlineBlobAndMetadataBlobId(
	inline, metadata mad_domain_interfaces.MarklId,
) (err *ErrHasInlineBlobAndMetadataDigest)

func (*ErrHasInlineBlobAndMetadataDigest) Error

func (*ErrHasInlineBlobAndMetadataDigest) GetErrorType

func (err *ErrHasInlineBlobAndMetadataDigest) GetErrorType() pkgErrDisamb

func (*ErrHasInlineBlobAndMetadataDigest) Is

type Factory

type Factory struct {
	EnvDir        mad_env_dir.Env
	BlobStore     mad_domain_interfaces.BlobStore
	BlobFormatter script_config.RemoteScript
	BlobTreeDir   string

	AllowMissingTypeSig bool
}

func (Factory) Make

func (factory Factory) Make() Format

func (Factory) MakeFormatterFamily

func (factory Factory) MakeFormatterFamily() FormatterFamily

func (Factory) MakeTextParser

func (factory Factory) MakeTextParser() Parser

type Format

type Format struct {
	FormatterFamily
	Parser
}

type Formatter

type Formatter interface {
	FormatMetadata(io.Writer, FormatterContext) (int64, error)
}

type FormatterContext

type FormatterContext struct {
	FormatterOptions
	objects.EncoderContext
}

TODO make a reliable constructor for this

type FormatterFamily

type FormatterFamily struct {
	BlobPath     Formatter
	InlineBlob   Formatter
	MetadataOnly Formatter
	BlobOnly     Formatter
}

type FormatterOptions

type FormatterOptions = checkout_options.TextFormatterOptions

type Parser

type Parser interface {
	ParseMetadata(io.Reader, ParserContext) (int64, error)
}

type ParserContext

type ParserContext interface {
	objects.DecoderContext
}

Source Files

  • errors.go
  • factory.go
  • formatter.go
  • formatter_components.go
  • main.go
  • text_parser.go
  • text_parser2.go

Jump to

Keyboard shortcuts

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