packagekit

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

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

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 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

	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
}

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

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