Documentation ¶
Overview ¶
Usage in lua configuration file
Directory({ Path = "/tmp/haiconf/testdirectory", Mode = "0755", Owner = "jerome", Group = "wheel", Recurse = true, Ensure = "present", })
Index ¶
Constants ¶
View Source
const ( DEFAULT_MODE_DIRECTORY = os.FileMode(0755) DEFAULT_MODE_FILE = os.FileMode(0644) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Directory ¶
type Directory struct { Path string Mode os.FileMode Owner *user.User Recurse bool Ensure string // no user.Group in golang yet // (https://code.google.com/p/go/issues/detail?id=2617) // Let's use a temporary one Group *hacks.Group // contains filtered or unexported fields }
func (*Directory) SetDefault ¶
func (d *Directory) SetDefault(rc *haiconf.RuntimeConfig) error
func (*Directory) SetUserConfig ¶
func (d *Directory) SetUserConfig(args haiconf.CommandArgs) error
type File ¶
type File struct { Path string Mode os.FileMode Ensure string Owner *user.User Group *hacks.Group Source string TemplateVariables map[string]interface{} // contains filtered or unexported fields }
func (*File) SetDefault ¶
func (f *File) SetDefault(rc *haiconf.RuntimeConfig) error
func (*File) SetUserConfig ¶
func (f *File) SetUserConfig(args haiconf.CommandArgs) error
Click to show internal directories.
Click to hide internal directories.