Documentation
¶
Overview ¶
Package hooks bundles the compatibility shell wrappers that packaged Traceary host integrations still ship alongside the Go hook runtime.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScriptAsset ¶
type ScriptAsset struct {
// contains filtered or unexported fields
}
ScriptAsset describes one packaged hook script.
func Assets ¶
func Assets() ([]ScriptAsset, error)
Assets returns the canonical hook scripts bundled with Traceary.
func ScriptAssetOf ¶ added in v0.4.0
func ScriptAssetOf(name string, content string) ScriptAsset
ScriptAssetOf creates a ScriptAsset with the given name and content.
func (ScriptAsset) Content ¶
func (a ScriptAsset) Content() string
Content returns the raw content of the hook script.
func (ScriptAsset) Name ¶
func (a ScriptAsset) Name() string
Name returns the file name of the hook script.
Click to show internal directories.
Click to hide internal directories.