standort

package
v0.0.0-...-1c9a7a8 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 26 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 (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 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) AkteReader

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

func (Standort) AkteWriter

func (s Standort) AkteWriter() (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) DirVerzeichnisseAkten

func (s Standort) DirVerzeichnisseAkten() string

func (Standort) DirVerzeichnisseZettelenNeue

func (s Standort) DirVerzeichnisseZettelenNeue() string

func (Standort) DirVerzeichnisseZettelenNeueSchwanzen

func (s Standort) DirVerzeichnisseZettelenNeueSchwanzen() 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) 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) FileVerzeichnisseZettelen

func (s Standort) FileVerzeichnisseZettelen() string

func (Standort) FileVerzeichnisseZettelenSchwanzen

func (s Standort) FileVerzeichnisseZettelenSchwanzen() 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) 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) 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 (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) 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