packagekit

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextNotarizationUuidKey contextKey = iota
	ContextLauncherVersionKey
	ContextOsqueryVersionKey
)
View Source
const (
	Deb    outputType = "deb"
	RPM               = "rpm"
	Tar               = "tar"
	Pacman            = "pacman"
)

Variables

This section is empty.

Functions

func GetFromContext added in v0.11.18

func GetFromContext(ctx context.Context, key contextKey) (string, error)

func InitContext added in v0.11.18

func InitContext(ctx context.Context) context.Context

InitContext adds several pointers to the context to allow for data smuggling. Not the simplest way to move data around, but it allows us not to adjust all the returns.

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

	AppleNotarizeAccountId   string   // The 10 character apple account id
	AppleNotarizeAppPassword string   // app password for notarization service
	AppleNotarizeUserId      string   // User id to authenticate to the notarization service with
	AppleSigningKey          string   // apple signing key
	WindowsSigntoolArgs      []string // Extra args for signtool. May be needed for finding a key
	WindowsUseSigntool       bool     // whether to use signtool.exe on windows

	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
Package applenotarization is a wrapper around the apple notarization tools.
Package applenotarization is a wrapper around the apple notarization tools.
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