packagekit

package
v0.11.14 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Deb    outputType = "deb"
	RPM               = "rpm"
	Tar               = "tar"
	Pacman            = "pacman"
)

Variables

This section is empty.

Functions

func PackageFPM

func PackageFPM(ctx context.Context, w io.Writer, po *PackageOptions, fpmOpts ...FpmOpt) error

func PackagePkg

func PackagePkg(ctx context.Context, w io.Writer, po *PackageOptions) error

func PackageWixMSI

func PackageWixMSI(ctx context.Context, w io.Writer, po *PackageOptions, includeService bool) error

func RenderInit

func RenderInit(ctx context.Context, w io.Writer, initOptions *InitOptions) error

func RenderLaunchd

func RenderLaunchd(ctx context.Context, w io.Writer, initOptions *InitOptions) error

func RenderSystemd

func RenderSystemd(ctx context.Context, w io.Writer, initOptions *InitOptions) error

func RenderUpstart

func RenderUpstart(ctx context.Context, w io.Writer, initOptions *InitOptions, uOpts ...UpstartOption) error

Types

type FpmOpt

type FpmOpt func(*fpmOptions)

func AsDeb

func AsDeb() FpmOpt

func AsPacman added in v0.11.7

func AsPacman() FpmOpt

func AsRPM

func AsRPM() FpmOpt

func AsTar

func AsTar() FpmOpt

func WithReplaces

func WithReplaces(r []string) FpmOpt

WithReplaces passes a list of package names tpo fpm's replace and conflict options. This allows creation of packages that supercede previous versions.

type InitOptions

type InitOptions struct {
	Name        string
	Description string
	Identifier  string
	Path        string
	Environment map[string]string `plist:"EnvironmentVariables"`
	Flags       []string          `plist:"ProgramArguments"`
}

type PackageOptions

type PackageOptions struct {
	Identifier string // What is the identifier? (eg: kolide-app)
	Name       string // What's the name for this package (eg: launcher)
	Root       string // source directory to package
	Scripts    string // directory of packaging scripts (postinst, prerm, etc)
	Version    string // package version
	FlagFile   string // Path to the flagfile for configuration

	DisableService bool // Whether to install a system service in a disabled state

	AppleSigningKey     string   // apple signing key
	WindowsUseSigntool  bool     // whether to use signtool.exe on windows
	WindowsSigntoolArgs []string // Extra args for signtool. May be needed for finding a key

	WixPath        string // path to wix installation
	WixUI          bool   //include the wix ui or not
	WixSkipCleanup bool   // keep the temp dirs
}

PackageOptions is the superset of all packaging options. Not all packages will support all options.

type UpstartOption

type UpstartOption func(*upstartOptions)

func WithExpect

func WithExpect(s string) UpstartOption

WithExpect sets the expect option. This is how upstart tracks the pid of the daemon. See http://upstart.ubuntu.com/cookbook/#expect

func WithPostStartScript

func WithPostStartScript(s []string) UpstartOption

func WithPreStartScript

func WithPreStartScript(s []string) UpstartOption

func WithPreStopScript

func WithPreStopScript(s []string) UpstartOption

func WithUpstartFlavor added in v0.11.12

func WithUpstartFlavor(s string) UpstartOption

Directories

Path Synopsis
Code generated by go-bindata.
Code generated by go-bindata.
Package wix is a lightweight wrapper around the wix tooolset.
Package wix is a lightweight wrapper around the wix tooolset.

Jump to

Keyboard shortcuts

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