store

package
v0.0.0-...-381c4e2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNeedsMerge = errors.New("needs merge")

Functions

This section is empty.

Types

type AbbrStore

TODO-P4 make generic

type AbbrStoreCompleteGeneric

type AbbrStoreCompleteGeneric[V any, VPtr schnittstellen.Ptr[V]] interface {
	AbbrStoreGeneric[V, VPtr]
	AbbrStoreMutableGeneric[V, VPtr]
}

type AbbrStoreGeneric

type AbbrStoreGeneric[V any, VPtr schnittstellen.Ptr[V]] interface {
	AbbrStorePresenceGeneric[V]
	ExpandStringString(string) (string, error)
	ExpandString(string) (VPtr, error)
	Expand(VPtr) (VPtr, error)
	Abbreviate(VPtr) (string, error)
}

type AbbrStoreMutableGeneric

type AbbrStoreMutableGeneric[V any, VPtr schnittstellen.Ptr[V]] interface {
	Add(VPtr) error
}

type AbbrStorePresenceGeneric

type AbbrStorePresenceGeneric[V any] interface {
	Exists([3]string) error
}

type ExternalReader

type ExternalReader interface {
	ReadOneCheckedOut(
		em *sku.ExternalMaybe,
	) (co *sku.CheckedOut, err error)

	ReadOneExternal(
		em *sku.ExternalMaybe,
		t *sku.Transacted,
	) (e *sku.External, err error)

	ReadOneExternalObjekte(
		e *sku.External,
		t *sku.Transacted,
	) (err error)

	ReadOneExternalObjekteReader(
		r io.Reader,
		e *sku.External,
	) (err error)

	ReadOneExternalAkte(
		e *sku.External,
		t *sku.Transacted,
	) (err error)
}

type Logger

type Logger struct {
	New, Updated, Unchanged schnittstellen.FuncIter[*sku.Transacted]
}

type Store

type Store struct {
	Abbr AbbrStore

	sku.TransactedAdder

	Logger
	// contains filtered or unexported fields
}

func (*Store) AddTypToIndex

func (s *Store) AddTypToIndex(t *kennung.Typ) (err error)

func (*Store) CheckoutOne

func (s *Store) CheckoutOne(
	options checkout_options.Options,
	sz *sku.Transacted,
) (cz *sku.CheckedOut, err error)

func (*Store) CheckoutQuery

func (s *Store) CheckoutQuery(
	options checkout_options.Options,
	qg *query.Group,
	f schnittstellen.FuncIter[*sku.CheckedOut],
) (err error)

func (*Store) Create

func (s *Store) Create(
	mg metadatei.Getter,
) (tz *sku.Transacted, err error)

func (*Store) CreateOrUpdate

func (s *Store) CreateOrUpdate(
	mg metadatei.Getter,
	kennungPtr kennung.Kennung,
) (transactedPtr *sku.Transacted, err error)

func (*Store) CreateOrUpdateAkteSha

func (s *Store) CreateOrUpdateAkteSha(
	kennungPtr kennung.Kennung,
	sh schnittstellen.ShaLike,
) (transactedPtr *sku.Transacted, err error)

func (*Store) CreateOrUpdateCheckedOut

func (s *Store) CreateOrUpdateCheckedOut(
	co *sku.CheckedOut,
) (transactedPtr *sku.Transacted, err error)

func (*Store) CreateOrUpdateTransacted

func (s *Store) CreateOrUpdateTransacted(
	in *sku.Transacted,
) (out *sku.Transacted, err error)

func (*Store) CreateWithAkteString

func (s *Store) CreateWithAkteString(
	mg metadatei.Getter,
	akteString string,
) (tz *sku.Transacted, err error)

func (*Store) FileExtensionForGattung

func (s *Store) FileExtensionForGattung(
	gg schnittstellen.GattungGetter,
) string

func (*Store) Flush

func (c *Store) Flush(
	printerHeader schnittstellen.FuncIter[string],
) (err error)

func (*Store) FlushBestandsaufnahme

func (s *Store) FlushBestandsaufnahme() (err error)

func (*Store) GetAbbrStore

func (s *Store) GetAbbrStore() AbbrStore

func (*Store) GetAkten

func (s *Store) GetAkten() *akten.Akten

func (*Store) GetBestandsaufnahmeStore

func (s *Store) GetBestandsaufnahmeStore() bestandsaufnahme.Store

func (*Store) GetCwdFiles

func (s *Store) GetCwdFiles() *cwd.CwdFiles

func (*Store) GetEnnui

func (s *Store) GetEnnui() ennui.Ennui

func (*Store) GetFileEncoder

func (s *Store) GetFileEncoder() objekte_collections.FileEncoder

func (*Store) GetKennungIndex

func (s *Store) GetKennungIndex() kennung_index.Index

func (*Store) GetKonfig

func (s *Store) GetKonfig() *konfig.Compiled

func (*Store) GetKonfigAkteFormat

func (s *Store) GetKonfigAkteFormat() akten.Format[erworben.Akte, *erworben.Akte]

func (*Store) GetObjekteFormatOptions

func (s *Store) GetObjekteFormatOptions() objekte_format.Options

func (*Store) GetPersistentMetadateiFormat

func (s *Store) GetPersistentMetadateiFormat() objekte_format.Format

func (*Store) GetStandort

func (s *Store) GetStandort() standort.Standort

func (*Store) GetTai

func (s *Store) GetTai() kennung.Tai

func (*Store) GetTime

func (s *Store) GetTime() thyme.Time

func (*Store) GetVerzeichnisse

func (s *Store) GetVerzeichnisse() *store_verzeichnisse.Store

func (*Store) Import

func (s *Store) Import(sk *sku.Transacted) (co *sku.CheckedOut, err error)

func (*Store) Initialize

func (c *Store) Initialize(
	k *konfig.Compiled,
	st standort.Standort,
	pmf objekte_format.Format,
	t thyme.Time,
	virtualStores map[string]*query.VirtualStoreInitable,
) (err error)

func (*Store) PathForTransacted

func (s *Store) PathForTransacted(dir string, tl *sku.Transacted) string

func (*Store) QueryWithCwd

func (s *Store) QueryWithCwd(
	ms *query.Group,
	f schnittstellen.FuncIter[*sku.Transacted],
) (err error)

func (*Store) QueryWithoutCwd

func (s *Store) QueryWithoutCwd(
	ms *query.Group,
	f schnittstellen.FuncIter[*sku.Transacted],
) (err error)

func (*Store) ReadAllGattungFromBestandsaufnahme

func (s *Store) ReadAllGattungFromBestandsaufnahme(
	g gattung.Gattung,
	f schnittstellen.FuncIter[*sku.Transacted],
) (err error)

func (*Store) ReadAllGattungFromVerzeichnisse

func (s *Store) ReadAllGattungFromVerzeichnisse(
	qg *query.Group,
	g gattung.Gattung,
	f schnittstellen.FuncIter[*sku.Transacted],
) (err error)

func (*Store) ReadAllGattungenFromBestandsaufnahme

func (s *Store) ReadAllGattungenFromBestandsaufnahme(
	g kennung.Gattung,
	f schnittstellen.FuncIter[*sku.Transacted],
) (err error)

func (*Store) ReadAllGattungenFromVerzeichnisse

func (s *Store) ReadAllGattungenFromVerzeichnisse(
	qg *query.Group,
	g kennung.Gattung,
	f schnittstellen.FuncIter[*sku.Transacted],
) (err error)

func (Store) ReadAllMatchingAkten

func (s Store) ReadAllMatchingAkten(
	qg *query.Group,
	akten fd.Set,
	f func(*fd.FD, *sku.Transacted) error,
) (err error)

func (*Store) ReadFiles

func (s *Store) ReadFiles(
	qg *query.Group,
	f schnittstellen.FuncIter[*sku.CheckedOut],
) (err error)

func (*Store) ReadOne

func (s *Store) ReadOne(
	k1 schnittstellen.StringerGattungGetter,
) (sk1 *sku.Transacted, err error)

func (*Store) ReadOneCheckedOut

func (s *Store) ReadOneCheckedOut(
	em *sku.ExternalMaybe,
) (co *sku.CheckedOut, err error)

func (*Store) ReadOneEnnui

func (s *Store) ReadOneEnnui(sh *sha.Sha) (*sku.Transacted, error)

func (*Store) ReadOneExternal

func (s *Store) ReadOneExternal(
	em *sku.ExternalMaybe,
	t *sku.Transacted,
) (e *sku.External, err error)

func (*Store) ReadOneExternalAkte

func (s *Store) ReadOneExternalAkte(
	e *sku.External,
	t *sku.Transacted,
) (err error)

func (*Store) ReadOneExternalFS

func (s *Store) ReadOneExternalFS(
	sk2 *sku.Transacted,
) (co *sku.CheckedOut, err error)

func (*Store) ReadOneExternalObjekte

func (s *Store) ReadOneExternalObjekte(
	e *sku.External,
	t *sku.Transacted,
) (err error)

func (*Store) ReadOneExternalObjekteReader

func (s *Store) ReadOneExternalObjekteReader(
	r io.Reader,
	e *sku.External,
) (err error)

func (*Store) ReadOneInto

func (s *Store) ReadOneInto(
	k1 schnittstellen.StringerGattungGetter,
	out *sku.Transacted,
) (err error)

func (*Store) ReadOneKennung

func (s *Store) ReadOneKennung(k kennung.Kennung) (sk *sku.Transacted, err error)

func (*Store) ReadOneSigil

func (s *Store) ReadOneSigil(
	k1 schnittstellen.StringerGattungGetter,
	si kennung.Sigil,
) (sk1 *sku.Transacted, err error)

func (*Store) ReaderFor

func (s *Store) ReaderFor(sh *sha.Sha) (rc sha.ReadCloser, err error)

func (*Store) Reindex

func (s *Store) Reindex() (err error)

TODO-P2 add support for quiet reindexing

func (*Store) ResetIndexes

func (s *Store) ResetIndexes() (err error)

func (*Store) RevertTo

func (s *Store) RevertTo(
	sk *sku.Transacted,
	sh *sha.Sha,
) (err error)

func (*Store) RunMergeTool

func (s *Store) RunMergeTool(
	tm to_merge.Sku,
) (err error)

func (*Store) SetCheckedOutLogWriter

func (s *Store) SetCheckedOutLogWriter(
	zelw schnittstellen.FuncIter[*sku.CheckedOut],
)

func (*Store) SetLogWriter

func (s *Store) SetLogWriter(lw Logger)

func (*Store) UpdateKonfig

func (s *Store) UpdateKonfig(
	sh schnittstellen.ShaLike,
) (kt *sku.Transacted, err error)

Jump to

Keyboard shortcuts

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