Package com.morpheusdata.core.providers
Interface ComputeTypePackageProvider
- All Superinterfaces:
PluginProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.morpheusdata.core.providers.PluginProvider
PluginProvider.EventSubscriberFacet<E extends Event> -
Method Summary
Modifier and TypeMethodDescriptiondeletePackage(ComputeServerGroup serverGroup, ComputeServerGroupPackage computeServerGroupPackage) Called when deleting a packageReturns the circular logo for display when adding a package with this provider.Provide custom configuration options when creating a new package through this providerThe version of the package that this provider can installgetType()installPackage(ComputeServerGroup serverGroup, ComputeServerGroupPackage computeServerGroupPackage) Called when a package needs to be installedupgradePackage(ComputeServerGroup serverGroup, ComputeServerGroupPackage computeServerGroupPackage, String newVersion) Called when a package needs to be upgradedMethods inherited from interface com.morpheusdata.core.providers.PluginProvider
getCode, getMorpheus, getName, getPlugin, isPlugin
-
Method Details
-
getCircularIcon
Icon getCircularIcon()Returns the circular logo for display when adding a package with this provider. SVGs are preferred.- Returns:
- Icon
-
getOptionTypes
List<OptionType> getOptionTypes()Provide custom configuration options when creating a new package through this provider- Returns:
- a List of OptionType
-
getDescription
String getDescription() -
getType
String getType() -
getPackageType
String getPackageType() -
getProviderType
String getProviderType() -
getPackageVersion
String getPackageVersion()The version of the package that this provider can install- Returns:
- the version
-
installPackage
ServiceResponse<ComputeServerGroupPackage> installPackage(ComputeServerGroup serverGroup, ComputeServerGroupPackage computeServerGroupPackage) Called when a package needs to be installed- Parameters:
computeServerGroupPackage- instance of the package that is being installed.serverGroup- serverGroup/cluster that package will be applied to.- Returns:
- ServiceResponse
-
upgradePackage
ServiceResponse<ComputeServerGroupPackage> upgradePackage(ComputeServerGroup serverGroup, ComputeServerGroupPackage computeServerGroupPackage, String newVersion) Called when a package needs to be upgraded- Parameters:
computeServerGroupPackage- instance of the package that is being upgraded.serverGroup- serverGroup/cluster that package will be applied to.- Returns:
- ServiceResponse
-
deletePackage
ServiceResponse deletePackage(ComputeServerGroup serverGroup, ComputeServerGroupPackage computeServerGroupPackage) Called when deleting a package- Parameters:
computeServerGroupPackage- instance of addonPackage that is being removedserverGroup- serverGroup/cluster that package will be removed from- Returns:
- ServiceResponse
-