Interface IHostingLoader
INTERNAL USE ONLY: This interface describes a low-level class implementations that are registered by the Neon.Kube.Hosting class library with HostingManager to provide a way to access the various hosting implementations without having to bake this into the Neon.Kube assembly.
Namespace: Neon.Kube.Hosting
Assembly: Neon.Kube.dll
Syntax
public interface IHostingLoader
Methods
GetManager(HostingEnvironment)
Returns the HostingManager for an environment that can be used for validating the hosting related options.
Declaration
HostingManager GetManager(HostingEnvironment environment)
Parameters
Type | Name | Description |
---|---|---|
HostingEnvironment | environment | The target hosting environment. |
Returns
Type | Description |
---|---|
HostingManager | The HostingManager or |
GetManager(ClusterProxy, bool, string)
Returns the HostingManager for provisioning a cluster using the default node image for the cluster environment.
Declaration
HostingManager GetManager(ClusterProxy cluster, bool cloudMarketplace, string logFolder = null)
Parameters
Type | Name | Description |
---|---|---|
ClusterProxy | cluster | The cluster being managed. |
bool | cloudMarketplace |
For cloud environments, this specifies whether the cluster should be provisioned
using a VM image from the public cloud marketplace when noteOnly NEONFORGE maintainers will have permission to use the private image. |
string | logFolder |
The folder where log files are to be written, otherwise or noteSpecific hosting managers may choose to ignore this when it doesn't make sense. |
Returns
Type | Description |
---|---|
HostingManager | The HostingManager or |
Exceptions
Type | Condition |
---|---|
NeonKubeException | Thrown if the multiple managers implement support for the same hosting environment. |
GetManagerWithNodeImageFile(ClusterProxy, string, string)
Returns the HostingManager for provisioning a cluster from an already downloaded image file already downloaded. This cannot be used for cloud environments.
Declaration
HostingManager GetManagerWithNodeImageFile(ClusterProxy cluster, string nodeImagePath = null, string logFolder = null)
Parameters
Type | Name | Description |
---|---|---|
ClusterProxy | cluster | The cluster being managed. |
string | nodeImagePath | Specifies the path to the local node image file. |
string | logFolder | The folder where log files are to be written, otherwise or |
Returns
Type | Description |
---|---|
HostingManager | The HostingManager or |
Exceptions
Type | Condition |
---|---|
NeonKubeException | Thrown if the multiple managers implement support for the same hosting environment. |
GetManagerWithNodeImageUri(ClusterProxy, bool, string, string)
Returns the HostingManager for provisioning a cluster by downloading a node image from a URI that references a single image file or a multi-part DownloadManifest image.
Declaration
HostingManager GetManagerWithNodeImageUri(ClusterProxy cluster, bool cloudMarketplace, string nodeImageUri, string logFolder = null)
Parameters
Type | Name | Description |
---|---|---|
ClusterProxy | cluster | The cluster being managed. |
bool | cloudMarketplace |
For cloud environments, this specifies whether the cluster should be provisioned
using a VM image from the public cloud marketplace when noteOnly NEONFORGE maintainers will have permission to use the private image. |
string | nodeImageUri | For on-premise hosting environments, this specifies the node image URI that
references a single image file or a multi-part DownloadManifest image.
This is ignored for cloud environments and must be passed as |
string | logFolder | The folder where log files are to be written, otherwise or |
Returns
Type | Description |
---|---|
HostingManager | The HostingManager or |
Exceptions
Type | Condition |
---|---|
NeonKubeException | Thrown if the multiple managers implement support for the same hosting environment. |
IsCloudEnvironment(HostingEnvironment)
Determines whether a hosting environment is hosted in the cloud.
Declaration
bool IsCloudEnvironment(HostingEnvironment environment)
Parameters
Type | Name | Description |
---|---|---|
HostingEnvironment | environment | The target hosting environment. |
Returns
Type | Description |
---|---|
bool |
|