Documentation ¶
Index ¶
- Variables
- func SetModTime(path string, reference string) (err error)
- type Files
- func (written Files) Descriptor(descriptor *descriptor.Descriptor, prefix string, radical string, ...) error
- func (written Files) Dir(prefix string, path string, reference string, quiet bool) error
- func (written Files) File(reader io.Reader, prefix string, radical string, extension string, ...) error
- func (written Files) Format(format string) (string, error)
- func (written Files) Hash(prefix string, radical string) error
- func (written Files) Info(info *version.Version, prefix string, radical string, reference string) error
- func (written Files) JSON() (string, error)
- func (written Files) Output(file string, format string) error
- func (written Files) Pack(mod *files.Files, prefix string, destination string, quiet bool) error
- func (written Files) RPM() string
- func (written Files) Symlink(prefix string, path string, target string, reference string) error
- func (written Files) Text(prefix string, special bool) string
- func (written Files) Zip(module *files.Files, prefix string, radical string, quiet bool) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Files ¶
A map of produced file paths to a list special attributes such as "dir": the result is a directory "ghost": the result file content will need to be recomputed on installation
func (Files) Descriptor ¶
func (written Files) Descriptor(descriptor *descriptor.Descriptor, prefix string, radical string, reference string, quiet bool) error
Create a new packed module description file
func (Files) Dir ¶
Create a new directory reference is something that will be taken as modification time reference It is provided as a convenience, sicne writing anything in the directory will change its mtime; a saparate SetModTime call is usually necessary
func (Files) File ¶
func (written Files) File(reader io.Reader, prefix string, radical string, extension string, reference string, overwrite bool, ) error
Create a new file radical is the target path without extension reference is something that will be taken as modification time reference
func (Files) Hash ¶
Create a new packed module Hash file
func (Files) Info ¶
func (written Files) Info(info *version.Version, prefix string, radical string, reference string) error
Create a new module info file
func (Files) Pack ¶
func (Files) Symlink ¶
Create a new symbolic link reference is something that will be taken as modification time reference