Documentation ¶
Index ¶
- func GetEnvVar(path string) string
- func GetFilePathFromServerPath(pathname string) string
- func ResolveHomeDir(path string) string
- type Environment
- type FS
- type LocalFS
- type Lookup
- type MemFile
- type MemFile2
- type MemFileInfo
- type MemoryFS
- type MemoryFileSystem
- type S3FS
- type UnderlyingEnvValue
- type UnderlyingFileValue
- type UnderlyingValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveHomeDir ¶
Types ¶
type Environment ¶
type Environment struct { FS FS // contains filtered or unexported fields }
func NewEnvironment ¶
func NewEnvironment(fs FS, getEnv func(string) string) *Environment
type Lookup ¶
type Lookup struct {
// contains filtered or unexported fields
}
func CreateFileSystemLookup ¶
func CreateLookup ¶
type MemFileInfo ¶
type MemFileInfo struct {
// contains filtered or unexported fields
}
func (MemFileInfo) IsDir ¶
func (fi MemFileInfo) IsDir() bool
func (MemFileInfo) ModTime ¶
func (fi MemFileInfo) ModTime() time.Time
func (MemFileInfo) Mode ¶
func (fi MemFileInfo) Mode() iofs.FileMode
func (MemFileInfo) Name ¶
func (fi MemFileInfo) Name() string
func (MemFileInfo) Size ¶
func (fi MemFileInfo) Size() int64
func (MemFileInfo) Sys ¶
func (fi MemFileInfo) Sys() any
type MemoryFS ¶
type MemoryFS struct {
// contains filtered or unexported fields
}
func CreateMemoryFS ¶
func CreateMemoryFS() *MemoryFS
type MemoryFileSystem ¶
type MemoryFileSystem struct {
*MemoryFS
}
type UnderlyingEnvValue ¶
type UnderlyingEnvValue struct {
// contains filtered or unexported fields
}
func NewUnderlyingEnvValue ¶
func NewUnderlyingEnvValue(key string) *UnderlyingEnvValue
func (*UnderlyingEnvValue) Get ¶
func (u *UnderlyingEnvValue) Get(env *Environment) ([]byte, error)
type UnderlyingFileValue ¶
type UnderlyingFileValue struct {
// contains filtered or unexported fields
}
func NewUnderlyingFileValue ¶
func NewUnderlyingFileValue(path string) *UnderlyingFileValue
func (*UnderlyingFileValue) Get ¶
func (u *UnderlyingFileValue) Get(env *Environment) ([]byte, error)
type UnderlyingValue ¶
type UnderlyingValue interface {
Get(env *Environment) ([]byte, error)
}
Click to show internal directories.
Click to hide internal directories.