Documentation
¶
Index ¶
- Constants
- Variables
- func GetPool() interfaces.Pool[Metadata, *Metadata]
- func MakeTextFormatterExcludeMetadata(common Dependencies) textFormatter
- func MakeTextFormatterMetadataBlobPath(common Dependencies) textFormatter
- func MakeTextFormatterMetadataInlineBlob(common Dependencies) textFormatter
- func MakeTextFormatterMetadataOnly(common Dependencies) textFormatter
- func StringSansTai(o *Metadata) (str string)
- type Cache
- func (v *Cache) AddTagExpandedPtr(e *ids.Tag) (err error)
- func (v *Cache) AddTagsImplicitPtr(e *ids.Tag) (err error)
- func (v *Cache) GetExpandedTags() ids.TagSet
- func (v *Cache) GetExpandedTagsMutable() ids.TagMutableSet
- func (v *Cache) GetImplicitTags() ids.TagSet
- func (v *Cache) GetImplicitTagsMutable() ids.TagMutableSet
- func (v *Cache) SetExpandedTags(e ids.TagSet)
- func (v *Cache) SetImplicitTags(e ids.TagSet)
- type Dependencies
- type ErrBlobFormatterFailed
- type ErrHasInlineBlobAndFilePath
- type ErrHasInlineBlobAndMetadataSha
- type Field
- type FormatterDependencies
- type Getter
- type Heap
- type Metadata
- func (mp *Metadata) AddComment(f string, vals ...interface{})
- func (m *Metadata) AddTagPtr(e *ids.Tag) (err error)
- func (m *Metadata) AddTagPtrFast(e *ids.Tag) (err error)
- func (z *Metadata) AddTagString(es string) (err error)
- func (pz *Metadata) Equals(z1 *Metadata) bool
- func (b *Metadata) EqualsSansTai(a *Metadata) bool
- func (m *Metadata) GenerateExpandedTags()
- func (m *Metadata) GetMetadata() *Metadata
- func (m *Metadata) GetTags() ids.TagSet
- func (z *Metadata) GetTai() ids.Tai
- func (z *Metadata) GetType() ids.Type
- func (z *Metadata) GetTypePtr() *ids.Type
- func (z *Metadata) IsEmpty() bool
- func (m *Metadata) Mutter() *sha.Sha
- func (m *Metadata) ResetTags()
- func (m *Metadata) SetFlagSet(f *flag.FlagSet)
- func (m *Metadata) SetFlagSetDescription(f *flag.FlagSet, usage string)
- func (m *Metadata) SetFlagSetTags(f *flag.FlagSet, usage string)
- func (m *Metadata) SetFlagSetType(f *flag.FlagSet, usage string)
- func (selbst *Metadata) SetMutter(mg Getter) (err error)
- func (metadata *Metadata) SetTags(tags ids.TagSet)
- func (m *Metadata) Sha() *sha.Sha
- func (a *Metadata) Subtract(b *Metadata)
- func (z *Metadata) UserInputIsEmpty() bool
- type MetadataLike
- type PersistentFormatterContext
- type PersistentParserContext
- type QueryPath
- type Setter
- type Sha
- type Shas
- type TextFormat
- type TextFormatOutput
- type TextFormatter
- type TextFormatterContext
- type TextFormatterFamily
- type TextFormatterOptions
- type TextParser
- type TextParserContext
Constants ¶
View Source
const ( ShaKeySelfMetadata = keys.ShaKeySelfMetadata ShaKeySelfMetadataWithouTai = keys.ShaKeySelfMetadataWithouTai ShaKeySelfMetadataObjectIdParent = keys.ShaKeySelfMetadataObjectIdParent ShaKeyParentMetadataObjectIdParent = keys.ShaKeyParentMetadataObjectIdParent ShaKeySelf = keys.ShaKeySelf ShaKeyParent = keys.ShaKeyParent )
Variables ¶
View Source
var ( EqualerSansTai equaler Equaler = equaler{/* contains filtered or unexported fields */} EqualerSansTaiIncludeVirtual = equaler{/* contains filtered or unexported fields */} )
View Source
var Lessor lessor
View Source
var Resetter resetter
View Source
var ResetterCache resetterCache
Functions ¶
func MakeTextFormatterExcludeMetadata ¶
func MakeTextFormatterExcludeMetadata( common Dependencies, ) textFormatter
func MakeTextFormatterMetadataBlobPath ¶
func MakeTextFormatterMetadataBlobPath( common Dependencies, ) textFormatter
func MakeTextFormatterMetadataInlineBlob ¶
func MakeTextFormatterMetadataInlineBlob( common Dependencies, ) textFormatter
func MakeTextFormatterMetadataOnly ¶
func MakeTextFormatterMetadataOnly( common Dependencies, ) textFormatter
func StringSansTai ¶
Types ¶
type Cache ¶
type Cache struct {
ParentTai ids.Tai
Dormant values.Bool
ExpandedTags ids.TagMutableSet // public for gob, but should be private
ImplicitTags ids.TagMutableSet // public for gob, but should be private
TagPaths tag_paths.Tags
QueryPath
}
func (*Cache) GetExpandedTags ¶
func (*Cache) GetExpandedTagsMutable ¶
func (v *Cache) GetExpandedTagsMutable() ids.TagMutableSet
func (*Cache) GetImplicitTags ¶
func (*Cache) GetImplicitTagsMutable ¶
func (v *Cache) GetImplicitTagsMutable() ids.TagMutableSet
func (*Cache) SetExpandedTags ¶
func (*Cache) SetImplicitTags ¶
type Dependencies ¶
type Dependencies struct {
EnvDir env_dir.Env
BlobStore interfaces.BlobStore
BlobFormatter script_config.RemoteScript
}
type ErrBlobFormatterFailed ¶
func MakeErrBlobFormatterFailed ¶
func MakeErrBlobFormatterFailed( err *exec.ExitError, ) ErrBlobFormatterFailed
func (ErrBlobFormatterFailed) Error ¶
func (e ErrBlobFormatterFailed) Error() string
func (ErrBlobFormatterFailed) Is ¶
func (e ErrBlobFormatterFailed) Is(target error) bool
func (ErrBlobFormatterFailed) ShouldShowStackTrace ¶
func (e ErrBlobFormatterFailed) ShouldShowStackTrace() bool
type ErrHasInlineBlobAndFilePath ¶
func MakeErrHasInlineBlobAndFilePath ¶
func MakeErrHasInlineBlobAndFilePath( blobFD *fd.FD, sh *sha.Sha, ) (err *ErrHasInlineBlobAndFilePath)
func (*ErrHasInlineBlobAndFilePath) Error ¶
func (e *ErrHasInlineBlobAndFilePath) Error() string
type ErrHasInlineBlobAndMetadataSha ¶
func MakeErrHasInlineBlobAndMetadataSha ¶
func MakeErrHasInlineBlobAndMetadataSha( inline, object_metadata *sha.Sha, ) (err *ErrHasInlineBlobAndMetadataSha)
func (*ErrHasInlineBlobAndMetadataSha) Error ¶
func (e *ErrHasInlineBlobAndMetadataSha) Error() string
type Field ¶
type Field = string_format_writer.Field
type FormatterDependencies ¶
type FormatterDependencies struct{}
type Metadata ¶
type Metadata struct {
Description descriptions.Description
Tags ids.TagMutableSet // public for gob, but should be private
Type ids.Type
Shas
Tai ids.Tai
Comments []string
Cache Cache
Fields []Field
}
func (*Metadata) AddComment ¶
func (*Metadata) AddTagString ¶
func (*Metadata) GenerateExpandedTags ¶
func (m *Metadata) GenerateExpandedTags()
func (*Metadata) GetMetadata ¶
func (*Metadata) GetTypePtr ¶
func (*Metadata) SetFlagSet ¶
TODO replace with command_components.ObjectMetadata
func (*Metadata) SetFlagSetDescription ¶
func (*Metadata) UserInputIsEmpty ¶
type MetadataLike ¶
type MetadataLike interface {
Getter
}
type PersistentFormatterContext ¶
type PersistentFormatterContext interface {
Getter
}
type PersistentParserContext ¶
type PersistentParserContext interface {
Getter
}
type QueryPath ¶
type QueryPath []qpItem
TODO remove this entirely in favor of ad hoc debugging of queries
type Shas ¶
type Shas struct {
Blob sha.Sha
SelfMetadata sha.Sha
SelfMetadataWithoutTai sha.Sha
SelfMetadataObjectIdParent sha.Sha
ParentMetadataObjectIdParent sha.Sha
}
TODO make this a map
type TextFormat ¶
type TextFormat struct {
TextFormatterFamily
TextParser
}
func MakeTextFormat ¶
func MakeTextFormat( common Dependencies, ) TextFormat
type TextFormatOutput ¶
type TextFormatter ¶
type TextFormatter interface {
FormatMetadata(io.Writer, TextFormatterContext) (int64, error)
}
type TextFormatterContext ¶
type TextFormatterContext struct {
TextFormatterOptions
PersistentFormatterContext
}
type TextFormatterFamily ¶
type TextFormatterFamily struct {
BlobPath TextFormatter
InlineBlob TextFormatter
MetadataOnly TextFormatter
BlobOnly TextFormatter
}
func MakeTextFormatterFamily ¶
func MakeTextFormatterFamily( common Dependencies, ) TextFormatterFamily
type TextFormatterOptions ¶
type TextFormatterOptions = checkout_options.TextFormatterOptions
type TextParser ¶
type TextParser interface {
ParseMetadata(io.Reader, TextParserContext) (int64, error)
}
func MakeTextParser ¶
func MakeTextParser( dependencies Dependencies, ) TextParser
type TextParserContext ¶
type TextParserContext interface {
PersistentParserContext
SetBlobSha(interfaces.Sha) error
}
Click to show internal directories.
Click to hide internal directories.