Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackagePreferences ¶
type PackagePreferences struct { Path string // the file the prefs will be written at Explanation string // a short explanation for the preference Package string // the name of the package the preference applies to Pin string // a pin on a certain source Priority int // the priority of that source }
PackagePreferences is a set of packaging preferences associated to a particular set of packages and repository. On apt-based systems, they are apt_preferences(5) compatible preferences for an apt source. It can be used to override the default priority for the source. Path where the file will be created (usually in /etc/apt/preferences.d/).
func (*PackagePreferences) RenderPreferenceFile ¶
func (p *PackagePreferences) RenderPreferenceFile(fileTemplate *template.Template) (string, error)
RenderPreferenceFile returns contents of the package-manager specific config file of this particular package source.
type PackageSource ¶
type PackageSource struct { Name string `yaml:"-"` URL string `yaml:"source"` Key string `yaml:"key,omitempty"` }
PackageSource contains all the data required for a package source.
func (*PackageSource) KeyFileName ¶
func (s *PackageSource) KeyFileName() string
KeyFileName returns the name of this source's keyfile.
Click to show internal directories.
Click to hide internal directories.