Documentation ¶
Index ¶
- Constants
- func GetFromContext(ctx context.Context, key contextKey) (string, error)
- func InitContext(ctx context.Context) context.Context
- func PackageFPM(ctx context.Context, w io.Writer, po *PackageOptions, fpmOpts ...FpmOpt) error
- func PackagePkg(ctx context.Context, w io.Writer, po *PackageOptions) error
- func PackageWixMSI(ctx context.Context, w io.Writer, po *PackageOptions, includeService bool) error
- func RenderInit(ctx context.Context, w io.Writer, initOptions *InitOptions) error
- func RenderLaunchd(ctx context.Context, w io.Writer, initOptions *InitOptions) error
- func RenderSystemd(ctx context.Context, w io.Writer, initOptions *InitOptions) error
- func RenderUpstart(ctx context.Context, w io.Writer, initOptions *InitOptions, ...) error
- type FpmOpt
- type InitOptions
- type PackageOptions
- type UpstartOption
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 InitContext ¶ added in v0.11.18
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 PackagePkg ¶
func PackageWixMSI ¶
func RenderInit ¶
func RenderLaunchd ¶
func RenderSystemd ¶
func RenderUpstart ¶
func RenderUpstart(ctx context.Context, w io.Writer, initOptions *InitOptions, uOpts ...UpstartOption) error
Types ¶
type FpmOpt ¶
type FpmOpt func(*fpmOptions)
func WithReplaces ¶
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 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
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package applenotarization is a wrapper around the apple notarization tools.
|
Package applenotarization is a wrapper around the apple notarization tools. |
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. |
Click to show internal directories.
Click to hide internal directories.