config

package
v0.0.0-...-a0c70a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL