standort

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(o ReadOptions) (r *reader, err error)

func NewWriter

func NewWriter(o WriteOptions) (w *writer, err error)

Types

type Akten

type Akten struct {
	Path string
}

TODO-P2

type ErrAlreadyExists

type ErrAlreadyExists struct {
	sha.Sha
	Path string
}

func MakeErrAlreadyExists

func MakeErrAlreadyExists(
	sh schnittstellen.ShaLike,
	path string,
) (err *ErrAlreadyExists)

func (*ErrAlreadyExists) Error

func (e *ErrAlreadyExists) Error() string

func (*ErrAlreadyExists) Is

func (e *ErrAlreadyExists) Is(target error) bool

type ErrNotInZitDir

type ErrNotInZitDir struct{}

func (ErrNotInZitDir) Error

func (e ErrNotInZitDir) Error() string

func (ErrNotInZitDir) Is

func (e ErrNotInZitDir) Is(target error) (ok bool)

func (ErrNotInZitDir) ShouldShowStackTrace

func (e ErrNotInZitDir) ShouldShowStackTrace() bool

type FileReadOptions

type FileReadOptions struct {
	*age.Age
	CompressionType angeboren.CompressionType
	Path            string
}

type Getter

type Getter interface {
	GetStandort() Standort
}

type MoveOptions

type MoveOptions struct {
	*age.Age
	CompressionType angeboren.CompressionType

	TempDir                   string
	ErrorOnAttemptedOverwrite bool
	LockFile                  bool
	FinalPath                 string
	GenerateFinalPathFromSha  bool
}

type Mover

type Mover struct {
	Writer
	// contains filtered or unexported fields
}

func (*Mover) Close

func (m *Mover) Close() (err error)

type MoverLight

type MoverLight struct {
	CompressionType angeboren.CompressionType
	// contains filtered or unexported fields
}

func (*MoverLight) Close

func (m *MoverLight) Close() (err error)

func (*MoverLight) GetShaLike

func (m *MoverLight) GetShaLike() schnittstellen.ShaLike

func (*MoverLight) ReadFrom

func (m *MoverLight) ReadFrom(r io.Reader) (n int64, err error)

func (*MoverLight) Write

func (m *MoverLight) Write(p []byte) (n int, err error)

type Options

type Options struct {
	BasePath string
	Debug    debug.Options
	// contains filtered or unexported fields
}

func (*Options) Validate

func (o *Options) Validate() (err error)

type ReadOptions

type ReadOptions struct {
	*age.Age
	CompressionType angeboren.CompressionType

	io.Reader
}

type Reader

type Reader interface {
	sha.ReadCloser
}

func NewFileReader

func NewFileReader(o FileReadOptions) (r Reader, err error)

type Standort

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

func Make

func Make(
	o Options,
) (s Standort, err error)

func (*Standort) Age

func (s *Standort) Age() *age.Age

func (Standort) AkteReader

func (s Standort) AkteReader(sh sha.ShaLike) (r sha.ReadCloser, err error)

func (Standort) AkteReaderFile

func (s Standort) AkteReaderFile(sh sha.ShaLike) (f *os.File, err error)

func (Standort) AkteReaderFrom

func (s Standort) AkteReaderFrom(
	sh sha.ShaLike,
	p string,
) (r sha.ReadCloser, err error)

func (Standort) AkteWriter

func (s Standort) AkteWriter() (w sha.WriteCloser, err error)

func (Standort) AkteWriterTo

func (s Standort) AkteWriterTo(p string) (w sha.WriteCloser, err error)

func (Standort) AkteWriterToLight

func (s Standort) AkteWriterToLight(p string) (w sha.WriteCloser, err error)

func (Standort) Cwd

func (s Standort) Cwd() string

func (Standort) Dir

func (s Standort) Dir(p ...string) string

func (Standort) DirKennung

func (s Standort) DirKennung() string

func (Standort) DirObjekten

func (s Standort) DirObjekten(p ...string) string

func (Standort) DirObjekten2

func (s Standort) DirObjekten2(p ...string) string

func (Standort) DirObjektenGattung

func (s Standort) DirObjektenGattung(
	sv schnittstellen.StoreVersion,
	g schnittstellen.GattungGetter,
) (p string, err error)

func (Standort) DirObjektenTransaktion

func (s Standort) DirObjektenTransaktion() string

func (Standort) DirTempLocal

func (s Standort) DirTempLocal() string

func (Standort) DirTempOS

func (s Standort) DirTempOS() (d string, err error)

func (Standort) DirVerlorenUndGefunden

func (s Standort) DirVerlorenUndGefunden() string

func (Standort) DirVerzeichnisse

func (s Standort) DirVerzeichnisse(p ...string) string

func (Standort) DirVerzeichnisseDurable

func (s Standort) DirVerzeichnisseDurable(p ...string) string

func (Standort) DirVerzeichnisseMetadatei

func (s Standort) DirVerzeichnisseMetadatei() string

func (Standort) DirVerzeichnisseMetadateiKennungMutter

func (s Standort) DirVerzeichnisseMetadateiKennungMutter() string

func (Standort) DirVerzeichnisseObjekten

func (s Standort) DirVerzeichnisseObjekten() string

func (Standort) DirVerzeichnisseVerweise

func (s Standort) DirVerzeichnisseVerweise() string

func (Standort) DirZit

func (s Standort) DirZit(p ...string) string

func (Standort) Executable

func (s Standort) Executable() string

func (Standort) FifoPipe

func (s Standort) FifoPipe() (p string, err error)

func (Standort) FileAge

func (s Standort) FileAge() string

func (Standort) FileKonfigAngeboren

func (c Standort) FileKonfigAngeboren() string

func (Standort) FileKonfigCompiled

func (c Standort) FileKonfigCompiled() string

func (Standort) FileKonfigErworben

func (c Standort) FileKonfigErworben() string

func (Standort) FileKonfigToml

func (c Standort) FileKonfigToml() string

func (Standort) FileTempLocal

func (s Standort) FileTempLocal() (f *os.File, err error)

func (Standort) FileTempLocalWithTemplate

func (s Standort) FileTempLocalWithTemplate(t string) (f *os.File, err error)

func (Standort) FileTempOS

func (s Standort) FileTempOS() (f *os.File, err error)

func (Standort) FileVerzeichnisseEtiketten

func (s Standort) FileVerzeichnisseEtiketten() string

func (Standort) FileVerzeichnisseHinweis

func (s Standort) FileVerzeichnisseHinweis() string

func (Standort) FileVerzeichnisseKennung

func (s Standort) FileVerzeichnisseKennung() string

func (Standort) GetKonfig

func (s Standort) GetKonfig() angeboren.Konfig

func (Standort) GetLockSmith

func (s Standort) GetLockSmith() schnittstellen.LockSmith

func (Standort) HasAkte

func (s Standort) HasAkte(
	sv schnittstellen.StoreVersion,
	sh sha.ShaLike,
) (ok bool)

func (Standort) HasObjekte

func (Standort) MakeDir

func (s Standort) MakeDir(d string) (err error)

func (Standort) MakeRelativePathStringFormatWriter

func (s Standort) MakeRelativePathStringFormatWriter() schnittstellen.StringFormatWriter[string]

func (Standort) MakeWriterRelativePath

func (s Standort) MakeWriterRelativePath(
	p string,
) schnittstellen.FuncWriter

func (Standort) MakeWriterRelativePathOr

func (s Standort) MakeWriterRelativePathOr(
	p string,
	or schnittstellen.FuncWriter,
) schnittstellen.FuncWriter

func (Standort) NewMover

func (s Standort) NewMover(o MoveOptions) (m *Mover, err error)

func (Standort) NewMoverLight

func (s Standort) NewMoverLight(o MoveOptions) (m *MoverLight, err error)

func (Standort) ObjekteReaderFactory

func (Standort) ObjekteReaderWriterFactory

func (s Standort) ObjekteReaderWriterFactory(
	g schnittstellen.GattungGetter,
) schnittstellen.ObjekteIOFactory

func (Standort) ReadAllLevel2Files

func (s Standort) ReadAllLevel2Files(
	p string,
	w schnittstellen.FuncIter[string],
) (err error)

func (Standort) ReadAllShas

func (s Standort) ReadAllShas(
	p string,
	w schnittstellen.FuncIter[*sha.Sha],
) (err error)

func (Standort) ReadAllShasForGattung

func (s Standort) ReadAllShasForGattung(
	sv schnittstellen.StoreVersion,
	g schnittstellen.GattungGetter,
	w schnittstellen.FuncIter[*sha.Sha],
) (err error)

func (Standort) ReadCloserObjekten

func (s Standort) ReadCloserObjekten(p string) (sha.ReadCloser, error)

func (Standort) ReadCloserVerzeichnisse

func (s Standort) ReadCloserVerzeichnisse(p string) (sha.ReadCloser, error)

func (Standort) Rel

func (s Standort) Rel(
	p string,
) (out string)

func (Standort) RelToCwdOrSame

func (s Standort) RelToCwdOrSame(p string) (p1 string)

func (Standort) ResetTemp

func (s Standort) ResetTemp() (err error)

func (Standort) ResetVerzeichnisse

func (s Standort) ResetVerzeichnisse() (err error)

func (Standort) SansAge

func (a Standort) SansAge() (b Standort)

func (Standort) SansCompression

func (a Standort) SansCompression() (b Standort)

func (Standort) WriteCloserObjekten

func (s Standort) WriteCloserObjekten(p string) (w sha.WriteCloser, err error)

func (Standort) WriteCloserVerzeichnisse

func (s Standort) WriteCloserVerzeichnisse(
	p string,
) (w sha.WriteCloser, err error)

type WriteOptions

type WriteOptions struct {
	*age.Age
	CompressionType angeboren.CompressionType

	io.Writer
}

type Writer

type Writer interface {
	sha.WriteCloser
}

Jump to

Keyboard shortcuts

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