fd

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

Documentation

Index

Constants

View Source
const (
	StateUnknown = state(iota)
	StateFileInfo
	StateRead
)

Variables

This section is empty.

Functions

func SetAddPairs

func SetAddPairs[T FDPairGetter](
	in schnittstellen.SetLike[T],
	out MutableSet,
) (err error)

Types

type AkteFDGetter

type AkteFDGetter interface {
	GetAkteFD() *FD
}

type AkteFDSetter

type AkteFDSetter interface {
	SetAkteFD(*FD)
}

type FD

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

func FDFromDir

func FDFromDir(
	p string,
) (fd *FD, err error)

func FDFromPath

func FDFromPath(p string) (fd *FD, err error)

func FDFromPathWithAkteWriterFactory

func FDFromPathWithAkteWriterFactory(
	p string,
	awf schnittstellen.AkteWriterFactory,
) (fd *FD, err error)

func File

func File(f *os.File) (fd *FD, err error)

func FileInfo

func FileInfo(fi os.FileInfo, dir string) (fd *FD, err error)

func MakeFile

func MakeFile(
	dir string,
	p string,
	awf schnittstellen.AkteWriterFactory,
) (ut *FD, err error)

func MakeFileFromFD

func MakeFileFromFD(
	fd *FD,
	awf schnittstellen.AkteWriterFactory,
) (ut *FD, err error)

func (*FD) Equals

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

func (*FD) EqualsAny

func (a *FD) EqualsAny(b any) bool

func (*FD) Ext

func (e *FD) Ext() string

func (*FD) ExtSansDot

func (e *FD) ExtSansDot() string

func (*FD) FileNameSansExt

func (e *FD) FileNameSansExt() string

func (*FD) GetPath

func (fd *FD) GetPath() string

func (*FD) GetShaLike

func (fd *FD) GetShaLike() schnittstellen.ShaLike

func (*FD) GetState

func (fd *FD) GetState() State

func (*FD) IsDir

func (fd *FD) IsDir() bool

func (*FD) IsEmpty

func (f *FD) IsEmpty() bool

func (*FD) Parts

func (fd *FD) Parts() [3]string

func (*FD) Reset

func (fd *FD) Reset()

func (*FD) ResetWith

func (dst *FD) ResetWith(src *FD)

func (*FD) Set

func (fd *FD) Set(v string) (err error)

func (*FD) SetFileInfo

func (f *FD) SetFileInfo(fi os.FileInfo, dir string) (err error)

func (*FD) SetPath

func (fd *FD) SetPath(p string) (err error)

func (*FD) SetPathRel

func (fd *FD) SetPathRel(p, dir string) (err error)

func (*FD) SetShaLike

func (fd *FD) SetShaLike(v schnittstellen.ShaLike) (err error)

func (*FD) SetWithAkteWriterFactory

func (fd *FD) SetWithAkteWriterFactory(
	p string,
	awf schnittstellen.AkteWriterFactory,
) (err error)

func (*FD) String

func (f *FD) String() string

type FDPairGetter

type FDPairGetter interface {
	ObjekteFDGetter
	AkteFDGetter
}

type KeyerSha

type KeyerSha struct{}

func (KeyerSha) GetKey

func (KeyerSha) GetKey(fd *FD) string

type MutableSet

type MutableSet = schnittstellen.MutableSetLike[*FD]

func MakeMutableSet

func MakeMutableSet(ts ...*FD) MutableSet

func MakeMutableSetSha

func MakeMutableSetSha() MutableSet

type ObjekteFDGetter

type ObjekteFDGetter interface {
	GetObjekteFD() *FD
}

type Set

type Set = schnittstellen.SetLike[*FD]

func MakeSet

func MakeSet(ts ...*FD) Set

type State

type State interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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