Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PkgSpecFile ¶
type PkgSpecFile struct { Name string `yaml:"name"` Version string `yaml:"version"` Architecture string `yaml:"architecture"` Maintainer string `yaml:"maintainer"` MaintainerEmail string `yaml:"maintainer_email"` Homepage string `yaml:"homepage"` Section string `yaml:"section"` Depends string `yaml:"depends"` Recommends string `yaml:"recommends"` Suggests string `yaml:"suggests"` Conflicts string `yaml:"conflicts"` Provides string `yaml:"provides"` Replaces string `yaml:"replaces"` Priority string `yaml:"priority"` BuiltUsing string `yaml:"built_using"` Description struct { Short string `yaml:"short"` Long string `yaml:"long"` } Files []struct { File string `yaml:"file"` Dest string `yaml:"dest"` Content string `yaml:"content"` ConfigFile bool `yaml:"conffile"` } `yaml:",flow"` Directories []string `yaml:",flow"` EmptyDirectories []string `yaml:"emptydirs,flow"` ControlExtra struct { Preinst string `yaml:"preinst"` Postinst string `yaml:"postinst"` Prerm string `yaml:"prerm"` Postrm string `yaml:"postrm"` } `yaml:"control_extra"` }
PkgSpecFile represents a single debian package
func PkgSpecFileUnmarshal ¶
func PkgSpecFileUnmarshal(data []byte) (*PkgSpecFile, error)
PkgSpecFileUnmarshal loads the configuration data into a PkgSpecFile structure
Click to show internal directories.
Click to hide internal directories.