config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFileName = ".deb.yaml"

Variables

This section is empty.

Functions

func Create

func Create() error

Types

type Config

type Config struct {
	Package      string            `yaml:"package"`
	Source       string            `yaml:"source"`
	Version      string            `yaml:"version"`
	Architecture []string          `yaml:"architecture"`
	Maintainer   string            `yaml:"maintainer"`
	Homepage     string            `yaml:"homepage"`
	Description  []string          `yaml:"description"`
	Section      string            `yaml:"section" default:"Universe"`
	Priority     string            `yaml:"priority"`
	Control      Control           `yaml:"control"`
	Data         map[string]string `yaml:"data"`
}

func Detect

func Detect(name string) (*Config, error)

type Control

type Control struct {
	Depends     []string `yaml:"depends"`
	Build       string   `yaml:"build"`
	Conffiles   []string `yaml:"conffiles"`
	PreInstall  string   `yaml:"preinst"`
	PostInstall string   `yaml:"postinst"`
	PreRemove   string   `yaml:"prerm"`
	PostRemove  string   `yaml:"postrm"`
}

Jump to

Keyboard shortcuts

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