sku

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: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TransactedSetEmpty TransactedSet
	TransactedLessor   transactedLessor
	TransactedEqualer  transactedEqualer
)
View Source
var ErrExternalHasConflictMarker = errors.New("external has conflict marker")
View Source
var TransactedResetter transactedResetter

Functions

func CalculateAndConfirmSha

func CalculateAndConfirmSha(
	sk SkuLike,
	format objekte_format.Formatter,
	o objekte_format.Options,
	sh schnittstellen.ShaLike,
) (err error)

func CalculateAndSetSha

func CalculateAndSetSha(
	sk SkuLike,
	format objekte_format.Formatter,
	o objekte_format.Options,
) (err error)

func EqualsSkuLike

func EqualsSkuLike(a, b SkuLike) (ok bool)

func GetCheckedOutPool

func GetCheckedOutPool() schnittstellen.Pool[CheckedOut, *CheckedOut]

func GetExternalPool

func GetExternalPool() schnittstellen.Pool[External, *External]

func GetTransactedPool

func GetTransactedPool() schnittstellen.Pool[Transacted, *Transacted]

func ReadFromSha

Types

type CheckedOut

type CheckedOut struct {
	Internal Transacted
	External External
	State    checked_out_state.State
	IsImport bool
	Error    error
}

func (*CheckedOut) DetermineState

func (c *CheckedOut) DetermineState(justCheckedOut bool)

func (*CheckedOut) InternalAndExternalEqualsSansTai

func (c *CheckedOut) InternalAndExternalEqualsSansTai() bool

func (*CheckedOut) SetError

func (c *CheckedOut) SetError(err error)

func (*CheckedOut) String

func (a *CheckedOut) String() string

type CheckedOutMutableSet

type CheckedOutMutableSet = schnittstellen.MutableSetLike[*CheckedOut]

type CheckedOutSet

type CheckedOutSet = schnittstellen.SetLike[*CheckedOut]

type Ennui

type Ennui interface {
	WriteOneObjekteMetadatei(o *Transacted) (err error)
	ReadOneEnnui(*sha.Sha) (*Transacted, error)
	ReadOneKennung(kennung.Kennung) (*Transacted, error)
	ReadOneKennungSha(kennung.Kennung) (*sha.Sha, error)
}

type External

type External struct {
	Transacted
	FDs ExternalFDs
}

func (*External) AsTransacted

func (a *External) AsTransacted() (b Transacted)

func (*External) GetAkteFD

func (a *External) GetAkteFD() *fd.FD

func (*External) GetAktePath

func (a *External) GetAktePath() string

func (*External) GetAkteSha

func (a *External) GetAkteSha() schnittstellen.ShaLike

func (*External) GetCheckoutMode

func (e *External) GetCheckoutMode() (m checkout_mode.Mode, err error)

func (*External) GetExternalSkuLike

func (t *External) GetExternalSkuLike() SkuExternalLike

func (*External) GetFDs

func (a *External) GetFDs() *ExternalFDs

func (*External) GetFDsPtr

func (a *External) GetFDsPtr() *ExternalFDs

func (*External) GetGattung

func (a *External) GetGattung() schnittstellen.GattungLike

func (*External) GetKennung

func (a *External) GetKennung() kennung.Kennung

func (*External) GetKey

func (o *External) GetKey() string

func (*External) GetMetadatei

func (a *External) GetMetadatei() *metadatei.Metadatei

func (*External) GetObjekteFD

func (a *External) GetObjekteFD() *fd.FD

func (*External) ResetWithExternalMaybe

func (a *External) ResetWithExternalMaybe(
	b *ExternalMaybe,
) (err error)

func (*External) SetAkteFD

func (a *External) SetAkteFD(v *fd.FD)

func (*External) SetAkteSha

func (a *External) SetAkteSha(v schnittstellen.ShaLike) (err error)

func (*External) SetFromSkuLike

func (t *External) SetFromSkuLike(sk SkuLike) (err error)

func (*External) String

func (a *External) String() string

type ExternalFDs

type ExternalFDs struct {
	Objekte fd.FD
	Akte    fd.FD
}

func (*ExternalFDs) ConflictMarkerError

func (e *ExternalFDs) ConflictMarkerError() (err error)

func (*ExternalFDs) Equals

func (a *ExternalFDs) Equals(b *ExternalFDs) bool

func (*ExternalFDs) GetCheckoutMode

func (e *ExternalFDs) GetCheckoutMode() (m checkout_mode.Mode)

func (*ExternalFDs) GetCheckoutModeOrError

func (e *ExternalFDs) GetCheckoutModeOrError() (m checkout_mode.Mode, err error)

func (*ExternalFDs) MakeConflictMarker

func (e *ExternalFDs) MakeConflictMarker() (path string)

func (*ExternalFDs) ResetWith

func (dst *ExternalFDs) ResetWith(src *ExternalFDs)

type ExternalMaybe

type ExternalMaybe struct {
	Kennung kennung.Kennung2
	FDs     ExternalFDs
}

func (*ExternalMaybe) Equals

func (a *ExternalMaybe) Equals(b ExternalMaybe) bool

func (*ExternalMaybe) GetAkteFD

func (e *ExternalMaybe) GetAkteFD() *fd.FD

func (*ExternalMaybe) GetFDs

func (e *ExternalMaybe) GetFDs() *ExternalFDs

func (*ExternalMaybe) GetKennungLike

func (e *ExternalMaybe) GetKennungLike() kennung.Kennung

func (*ExternalMaybe) GetKennungLikePtr

func (e *ExternalMaybe) GetKennungLikePtr() kennung.KennungPtr

func (*ExternalMaybe) GetObjekteFD

func (e *ExternalMaybe) GetObjekteFD() *fd.FD

func (*ExternalMaybe) String

func (a *ExternalMaybe) String() string

type KennungKeyer

type KennungKeyer[
	T any,
	TPtr interface {
		schnittstellen.Ptr[T]
		kennungGetter
	},
] struct{}

func (KennungKeyer[T, TPtr]) GetKey

func (sk KennungKeyer[T, TPtr]) GetKey(e TPtr) string

type Query

type QueryGroup

type QueryGroup interface {
	Query
	Get(gattung.Gattung) (QueryWithSigilAndKennung, bool)
}

type QueryWithSigilAndKennung

type QueryWithSigilAndKennung interface {
	Query
	GetSigil() kennung.Sigil
	ContainsKennung(*kennung.Kennung2) bool
}

type Queryable

type Queryable interface {
	ContainsSku(*Transacted) bool
}

type Schwanzen

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

func MakeSchwanzen

func MakeSchwanzen(
	ei kennung_index.EtikettIndexMutation,
	funcFlush schnittstellen.FuncIter[*Transacted],
) (s *Schwanzen)

func (*Schwanzen) Get

func (zws *Schwanzen) Get(h kennung.Kennung) (t kennung.Tai, ok bool)

func (*Schwanzen) Initialize

func (*Schwanzen) Less

func (zws *Schwanzen) Less(zt *Transacted) (ok bool)

func (*Schwanzen) Set

func (zws *Schwanzen) Set(z *Transacted, flush bool) (ok bool)

func (*Schwanzen) ShouldAddVerzeichnisse

func (zws *Schwanzen) ShouldAddVerzeichnisse(
	z *Transacted,
) (err error)

func (*Schwanzen) ShouldFlushVerzeichnisse

func (zws *Schwanzen) ShouldFlushVerzeichnisse(
	z *Transacted,
) (err error)

type SkuExternalLike

type SkuExternalLike interface {
	SkuLike

	GetExternalSkuLike() SkuExternalLike

	GetFDs() *ExternalFDs
	GetAkteFD() *fd.FD
	GetObjekteFD() *fd.FD
	GetAktePath() string

	ResetWithExternalMaybe(b *ExternalMaybe) (err error)
}

type SkuLike

type SkuLike interface {
	schnittstellen.ValueLike
	schnittstellen.GattungGetter
	metadatei.Getter

	GetKopf() kennung.Tai
	GetTai() kennung.Tai
	GetTyp() kennung.Typ
	GetKennung() kennung.Kennung
	GetObjekteSha() schnittstellen.ShaLike
	GetAkteSha() schnittstellen.ShaLike
	GetKey() string

	metadatei.Getter

	SetAkteSha(schnittstellen.ShaLike) error
	SetObjekteSha(schnittstellen.ShaLike) error
	CalculateObjekteShas() (err error)

	SetTai(kennung.Tai)
	SetKennungLike(kennung.Kennung) error
	SetFromSkuLike(SkuLike) error

	GetSkuLike() SkuLike
}

type Transacted

type Transacted struct {
	Kennung          kennung.Kennung2
	Metadatei        metadatei.Metadatei
	TransactionIndex values.Int
	Kopf             kennung.Tai
}

func (*Transacted) AddEtikettPtr

func (a *Transacted) AddEtikettPtr(e *kennung.Etikett) (err error)

func (*Transacted) CalculateObjekteShaDebug

func (s *Transacted) CalculateObjekteShaDebug() (err error)

func (*Transacted) CalculateObjekteShas

func (s *Transacted) CalculateObjekteShas() (err error)

func (*Transacted) Equals

func (a *Transacted) Equals(b *Transacted) (ok bool)

func (*Transacted) EqualsAny

func (a *Transacted) EqualsAny(b any) (ok bool)

func (*Transacted) EqualsSkuLikePtr

func (a *Transacted) EqualsSkuLikePtr(b SkuLike) bool

func (*Transacted) GetAkteSha

func (s *Transacted) GetAkteSha() schnittstellen.ShaLike

func (*Transacted) GetEtiketten

func (a *Transacted) GetEtiketten() kennung.EtikettSet

func (*Transacted) GetGattung

func (s *Transacted) GetGattung() schnittstellen.GattungLike

func (*Transacted) GetKennung

func (a *Transacted) GetKennung() kennung.Kennung

func (*Transacted) GetKennungLike

func (a *Transacted) GetKennungLike() kennung.Kennung

func (*Transacted) GetKey

func (o *Transacted) GetKey() string

func (*Transacted) GetKopf

func (a *Transacted) GetKopf() kennung.Tai

func (*Transacted) GetMetadatei

func (a *Transacted) GetMetadatei() *metadatei.Metadatei

func (*Transacted) GetObjekteSha

func (s *Transacted) GetObjekteSha() schnittstellen.ShaLike

func (*Transacted) GetSkuLike

func (t *Transacted) GetSkuLike() SkuLike

func (*Transacted) GetSkuLikePtr

func (a *Transacted) GetSkuLikePtr() SkuLike

func (*Transacted) GetTai

func (a *Transacted) GetTai() kennung.Tai

func (*Transacted) GetTransactionIndex

func (s *Transacted) GetTransactionIndex() values.Int

func (*Transacted) GetTyp

func (a *Transacted) GetTyp() kennung.Typ

func (*Transacted) IsNew

func (s *Transacted) IsNew() bool

func (*Transacted) Less

func (a *Transacted) Less(b *Transacted) bool

func (*Transacted) SetAkteSha

func (s *Transacted) SetAkteSha(sh schnittstellen.ShaLike) error

func (*Transacted) SetArchiviert

func (s *Transacted) SetArchiviert(v bool)

func (*Transacted) SetFromSkuLike

func (t *Transacted) SetFromSkuLike(sk SkuLike) (err error)

func (*Transacted) SetFromTransacted

func (a *Transacted) SetFromTransacted(b *Transacted) (err error)

func (*Transacted) SetKennungLike

func (a *Transacted) SetKennungLike(kl kennung.Kennung) (err error)

func (*Transacted) SetObjekteSha

func (s *Transacted) SetObjekteSha(v schnittstellen.ShaLike) (err error)

func (*Transacted) SetTai

func (a *Transacted) SetTai(t kennung.Tai)

func (*Transacted) String

func (a *Transacted) String() string

func (*Transacted) StringKennungBezeichnung

func (a *Transacted) StringKennungBezeichnung() string

func (*Transacted) StringKennungMutter

func (a *Transacted) StringKennungMutter() string

func (*Transacted) StringKennungSha

func (a *Transacted) StringKennungSha() string

func (*Transacted) StringKennungTai

func (a *Transacted) StringKennungTai() string

func (*Transacted) StringKennungTaiAkte

func (a *Transacted) StringKennungTaiAkte() string

type TransactedAdder

type TransactedAdder interface {
	AddTransacted(*Transacted) error
}

type TransactedHeap

type TransactedHeap = heap.Heap[Transacted, *Transacted]

func MakeTransactedHeap

func MakeTransactedHeap() *TransactedHeap

type TransactedMutableSet

type TransactedMutableSet = schnittstellen.MutableSetLike[*Transacted]

func MakeTransactedMutableSet

func MakeTransactedMutableSet() TransactedMutableSet

func MakeTransactedMutableSetKennung

func MakeTransactedMutableSetKennung() TransactedMutableSet

type TransactedSet

type TransactedSet = schnittstellen.SetLike[*Transacted]

func MakeTransactedSet

func MakeTransactedSet() TransactedSet

Jump to

Keyboard shortcuts

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