|
|
|
|
|
CanCreateZenPack(dmd,
zpId)
Return tuple (bool, string) where first element is true if a new
zenpack can be created with the given info and false if not. |
source code
|
|
|
ScrubZenPackId(name)
If the given name conforms to ZenPack naming rules, or can easily
be modified to do so, then return (True, scrubbedName) where
scrubbedName is either name or a slightly modified name. |
source code
|
|
|
InstallEggAndZenPack(dmd,
eggPath,
link=False,
filesOnly=False,
sendEvent=True,
previousVersion=None)
Installs the given egg, instantiates the ZenPack, installs in
dmd.ZenPackManager.packs, and runs the zenpacks's install method. |
source code
|
|
|
InstallEgg(dmd,
eggPath,
link=False)
Install the given egg and add to the current working set. |
source code
|
|
|
InstallDistAsZenPack(dmd,
dist,
eggPath,
link=False,
filesOnly=False,
previousVersion=None)
Given an installed dist, install it into Zenoss as a ZenPack. |
source code
|
|
|
|
|
|
|
ReadZenPackInfo(dist)
Return a dictionary containing the egg metadata |
source code
|
|
|
CopyMetaDataToZenPackObject(dist,
pack)
Copy metadata type stuff from the distribution to the zp
object. |
source code
|
|
|
CreateZenPacksDir()
Make sure $ZENHOME/ZenPacks exists |
source code
|
|
|
|
|
|
|
FetchZenPack(zenPackName,
zenPackVersion='')
Use easy_install to retrieve the given zenpack and any
dependencies. |
source code
|
|
|
UploadZenPack(dmd,
packName,
project,
description,
znetUser,
znetPass)
Upload the specified zenpack to the given project. |
source code
|
|
|
RemoveZenPack(dmd,
packName,
filesOnly=False,
skipDepsCheck=False,
leaveObjects=False,
sendEvent=True,
forceNoFileDeletion=False,
uninstallEgg=True)
Remove the given ZenPack from Zenoss. |
source code
|
|
|
|
|
CanRemoveZenPacks(dmd,
packNames)
Returns a tuple of (canRemove, otherDependents) canRemove is True
if the listed zenPacks have no dependents not also listed in
packNames, False otherwise. |
source code
|
|
|
GetDependents(dmd,
packName)
Return a list of installed ZenPack ids that list packName as a
dependency |
source code
|
|
|
ZPEvent(dmd,
severity,
summary,
message=None)
Send an event to Zenoss. |
source code
|
|