objects

package
v0.1.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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

Functions

func GetMarklIdForPurpose

func GetMarklIdForPurpose(
	metadata Metadata,
	purposeId string,
) mad_domain_interfaces.MarklId

func GetMarklIdMutableForPurpose

func GetMarklIdMutableForPurpose(
	metadata MetadataMutable,
	purposeId string,
) mad_domain_interfaces.MarklIdMutable

func Make

func Make() *metadata

func MakeBuilder

func MakeBuilder() *builder

func SetTags

func SetTags[TAG ids.Tag](metadata MetadataMutable, otherTags ids.Set[TAG])

func StringSansTai

func StringSansTai(metadata *metadata) string

Types

type BlobReferences

type BlobReferences struct {
	// contains filtered or unexported fields
}

func (*BlobReferences) Add

func (refs *BlobReferences) Add(
	id markl.Id,
	typeLock markl.Lock[ids.SeqId, *ids.SeqId],
)

func (BlobReferences) All

func (refs BlobReferences) All() interfaces.Seq[markl.Id]

func (BlobReferences) GetAlias

func (refs BlobReferences) GetAlias(id markl.Id) string

func (BlobReferences) GetTypeLock

func (refs BlobReferences) GetTypeLock(
	id markl.Id,
) markl.Lock[ids.SeqId, *ids.SeqId]

func (*BlobReferences) GetTypeLockMutable

func (refs *BlobReferences) GetTypeLockMutable(
	id markl.Id,
) *markl.Lock[ids.SeqId, *ids.SeqId]

func (*BlobReferences) Reset

func (refs *BlobReferences) Reset()

func (*BlobReferences) ResetWith

func (refs *BlobReferences) ResetWith(other BlobReferences)

func (*BlobReferences) SetAlias

func (refs *BlobReferences) SetAlias(id markl.Id, alias string) error

type ContainedObjects

type ContainedObjects collections_slice.Slice[containedObject]

func (*ContainedObjects) Add

func (contents *ContainedObjects) Add(id SeqId) error

func (*ContainedObjects) AddReference

func (contents *ContainedObjects) AddReference(id SeqId) error

func (ContainedObjects) All

func (contents ContainedObjects) All() interfaces.Seq[SeqId]

func (ContainedObjects) AllReferences

func (contents ContainedObjects) AllReferences() interfaces.Seq[SeqId]

func (ContainedObjects) AllTags

func (contents ContainedObjects) AllTags() interfaces.Seq[SeqId]

func (ContainedObjects) ContainsKey

func (contents ContainedObjects) ContainsKey(key string) bool

func (*ContainedObjects) DelKey

func (contents *ContainedObjects) DelKey(key string) error

func (ContainedObjects) Get

func (contents ContainedObjects) Get(key string) (SeqId, bool)

func (ContainedObjects) GetPartial

func (contents ContainedObjects) GetPartial(key string) (SeqId, bool)

func (ContainedObjects) GetSlice

func (contents ContainedObjects) GetSlice() collections_slice.Slice[containedObject]

func (*ContainedObjects) GetSliceMutable

func (contents *ContainedObjects) GetSliceMutable() *collections_slice.Slice[containedObject]

func (ContainedObjects) Key

func (contents ContainedObjects) Key(id SeqId) string

func (ContainedObjects) Len

func (contents ContainedObjects) Len() int

func (*ContainedObjects) Reset

func (contents *ContainedObjects) Reset()

func (*ContainedObjects) ResetTags

func (contents *ContainedObjects) ResetTags()

func (ContainedObjects) TagLen

func (contents ContainedObjects) TagLen() int

type DecoderContext

type DecoderContext interface {
	GetterMutable
	SetBlobDigest(mad_domain_interfaces.MarklId) error
}

Coding

type EncoderContext

type EncoderContext interface {
	Getter
}

Coding

type Field

type Field = fields.Field

type Getter

type Getter interface {
	GetMetadata() Metadata
}

type GetterMutable

type GetterMutable interface {
	GetMetadataMutable() MetadataMutable
}

type IdLock

type IdLockMutable

type IdLockMutable = mad_domain_interfaces.LockMutable[SeqId, *SeqId]

type Index

type Index interface {
	GetFields() interfaces.Seq[Field]
	GetTagPaths() *tag_paths.Tags // TODO make immutable view
	GetDormant() values.Bool
	GetImplicitTags() TagSet
	GetComments() interfaces.Seq[string]
	GetSelfWithoutTai() mad_domain_interfaces.MarklId
}

type IndexMutable

type IndexMutable interface {
	Index

	AddTagsImplicitPtr(tag Tag)
	GetDormantMutable() *values.Bool
	GetFieldsMutable() *collections_slice.Slice[Field]
	GetTagPathsMutable() *tag_paths.Tags
	SetImplicitTags(e TagSet)
	GetCommentsMutable() *collections_slice.Slice[string]
	GetSelfWithoutTaiMutable() mad_domain_interfaces.MarklIdMutable
}

type Metadata

type Metadata interface {
	Getter

	IsEmpty() bool

	GetDescription() descriptions.Description
	GetIndex() Index
	GetTags() TagSet
	AllTags() interfaces.Seq[Tag]
	GetTai() ids.Tai
	GetType() Type
	GetTypeLock() TypeLock

	GetTagLock(Tag) TagLock

	AllReferencedObjects() interfaces.Seq[SeqId]
	GetReferencedObjectLock(SeqId) IdLock
	GetReferenceAlias(SeqId) string

	AllBlobReferences() interfaces.Seq[markl.Id]
	GetBlobReferenceAlias(markl.Id) string
	GetBlobReferenceTypeLock(markl.Id) markl.Lock[ids.SeqId, *ids.SeqId]

	GetBlobDigest() mad_domain_interfaces.MarklId
	GetObjectDigest() mad_domain_interfaces.MarklId
	GetMotherObjectSig() mad_domain_interfaces.MarklId
	GetRepoPubKey() mad_domain_interfaces.MarklId
	GetObjectSig() mad_domain_interfaces.MarklId
}

type MetadataMutable

type MetadataMutable interface {
	interfaces.CommandComponentWriter
	Metadata
	GetterMutable

	Subtract(Metadata)

	AddTagPtr(Tag) (err error)
	ResetTags()
	AddTagString(tagString string) (err error)
	AddTagPtrFast(tag Tag) (err error)
	GenerateExpandedTags()

	GetIndexMutable() IndexMutable

	GetBlobDigestMutable() mad_domain_interfaces.MarklIdMutable
	GetDescriptionMutable() *descriptions.Description
	GetMotherObjectSigMutable() mad_domain_interfaces.MarklIdMutable
	GetObjectDigestMutable() mad_domain_interfaces.MarklIdMutable
	GetObjectSigMutable() mad_domain_interfaces.MarklIdMutable
	GetRepoPubKeyMutable() mad_domain_interfaces.MarklIdMutable
	GetTaiMutable() *ids.Tai
	GetTypeMutable() TypeMutable
	GetTypeLockMutable() TypeLockMutable
	GetTagLockMutable(Tag) TagLockMutable
	AddReference(SeqId) error
	SetReferenceAlias(ref SeqId, alias string) error
	GetReferencedObjectLockMutable(SeqId) IdLockMutable

	AddBlobReference(markl.Id, markl.Lock[ids.SeqId, *ids.SeqId])
	SetBlobReferenceAlias(markl.Id, string) error
	GetBlobReferenceTypeLockMutable(markl.Id) *markl.Lock[ids.SeqId, *ids.SeqId]
	ResetBlobReferences()
}

type MetadataStruct

type MetadataStruct = metadata

type SeqId

type SeqId = ids.SeqId

type Tag

type Tag = ids.Tag

type TagLock

type TagLock = IdLock

type TagLockMutable

type TagLockMutable = IdLockMutable

type TagSet

type TagSet = ids.Set[ids.TagStruct]

type TagSetMutable

type TagSetMutable = ids.SetMutable[ids.TagStruct]

type TagStruct

type TagStruct = ids.TagStruct

type Type

type Type = ids.SeqId

type TypeLock

type TypeLockMutable

type TypeMutable

type TypeMutable = *ids.SeqId

Source Files

  • blob_reference.go
  • builder.go
  • cmp.go
  • contained_object.go
  • contained_object_type.go
  • contained_objects.go
  • contents_tag_set.go
  • flags.go
  • index.go
  • interfaces.go
  • key_values.go
  • main.go
  • markl.go
  • resetter.go
  • string.go
  • tag_set_flags_use_collecionts.go
  • util.go

Jump to

Keyboard shortcuts

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