Documentation ¶
Index ¶
- Constants
- 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 ( Deb outputType = "deb" RPM = "rpm" Tar = "tar" )
Variables ¶
This section is empty.
Functions ¶
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 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
Source Files ¶
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. |
Click to show internal directories.
Click to hide internal directories.