Documentation ¶
Index ¶
- type Namespace
- func (ns *Namespace) FileExists(i interface{}) (bool, error)
- func (ns *Namespace) Getenv(key interface{}) (string, error)
- func (ns *Namespace) ReadDir(i interface{}) ([]_os.FileInfo, error)
- func (ns *Namespace) ReadFile(i interface{}) (string, error)
- func (ns *Namespace) Stat(i interface{}) (_os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace provides template functions for the "os" namespace.
func (*Namespace) FileExists ¶ added in v0.30.1
FileExists checks whether a file exists under the given path.
func (*Namespace) Getenv ¶
Getenv retrieves the value of the environment variable named by the key. It returns the value, which will be empty if the variable is not present.
func (*Namespace) ReadDir ¶
ReadDir lists the directory contents relative to the configured WorkingDir.
Click to show internal directories.
Click to hide internal directories.