Documentation ¶
Index ¶
- func CurrentHomeDir() (string, error)
- func GetWindmillDir() (string, error)
- type WindmillDir
- func (d *WindmillDir) Abs(p string) (string, error)
- func (d *WindmillDir) MkdirAll(p string) error
- func (d *WindmillDir) OpenFile(p string, flag int, perm os.FileMode) (*os.File, error)
- func (d *WindmillDir) ReadFile(p string) (string, error)
- func (d *WindmillDir) Root() string
- func (d *WindmillDir) WriteFile(p, text string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentHomeDir ¶
func GetWindmillDir ¶
WindmillDir returns the root Windmill directory; by default ~/.windmill
Types ¶
type WindmillDir ¶
type WindmillDir struct {
// contains filtered or unexported fields
}
func NewWindmillDirAt ¶
func NewWindmillDirAt(dir string) *WindmillDir
Create a windmill dir at an arbitrary directory. Useful for testing.
func UseWindmillDir ¶
func UseWindmillDir() (*WindmillDir, error)
func (*WindmillDir) MkdirAll ¶
func (d *WindmillDir) MkdirAll(p string) error
func (*WindmillDir) Root ¶
func (d *WindmillDir) Root() string
func (*WindmillDir) WriteFile ¶
func (d *WindmillDir) WriteFile(p, text string) error
Click to show internal directories.
Click to hide internal directories.