directory

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.2.0

type Config interface {
	BaseDir() string
	ServerInstanceID() string
}

type ConfigFactory added in v0.4.0

type ConfigFactory interface {
	Config() (config.Config, messages.Error)
}

type Directory

type Directory interface {
	BaseDir() string
	ID() string
	CreateSubDir(pattern string) (string, messages.Error)
	RecordToLogger(logger entities.Logger)
}

type Factory added in v0.4.1

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

func NewFactory added in v0.4.1

func NewFactory(
	configFactory ConfigFactory,
	filenameFactory FilenameFactory,
	osFacade OSLayer,
) *Factory

func (*Factory) Directory added in v0.4.1

func (f *Factory) Directory() (Directory, messages.Error)

type FilenameFactory added in v0.2.0

type FilenameFactory interface {
	CreateFileWithUniqueSuffix(baseName string, ext string) (string, string, error)
}

type OSLayer

type OSLayer interface {
	MkdirTemp(dir string, pattern string) (string, error)
	MkdirAll(name string, perm os.FileMode) error
	Create(name string) (osfacade.File, error)
}

Jump to

Keyboard shortcuts

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