PHP Class Scalr\Modules\PlatformFactory

Afficher le fichier Open project: scalr/scalr Class Usage Examples

Méthodes publiques

Méthode Description
NewPlatform ( string $platform ) : Scalr\Modules\PlatformModuleInterface Create platform instance
getCanonicalOpenstackPlatforms ( ) : array Gets the list of canonical OpenStack based clouds
getCloudstackBasedPlatforms ( ) : array Gets the list of CloudStack based clouds
getOpenstackBasedPlatforms ( ) : array Gets the list of OpenStack based clouds
getPublicPlatforms ( ) : array Gets the list of public clouds
getRackspacePlatforms ( ) : array Returns the list of Rackspace clouds
isCloudstack ( string $platform ) : boolean Checks wheter specified cloud is CloudStack based
isOpenstack ( string $platform, boolean $canonical = false ) : boolean Checks wheter specified cloud is OpenStack based
isPublic ( string $platform ) : boolean Checks wheter specified cloud is public
isRackspace ( string $platform ) : boolean Checks wheter specified cloud is Rackspace cloud
warmup ( ) Clears static cache

Method Details

NewPlatform() public static méthode

Create platform instance
public static NewPlatform ( string $platform ) : Scalr\Modules\PlatformModuleInterface
$platform string
Résultat Scalr\Modules\PlatformModuleInterface

getCanonicalOpenstackPlatforms() public static méthode

Gets the list of canonical OpenStack based clouds
public static getCanonicalOpenstackPlatforms ( ) : array
Résultat array

getCloudstackBasedPlatforms() public static méthode

Gets the list of CloudStack based clouds
public static getCloudstackBasedPlatforms ( ) : array
Résultat array Returns the list of CloudStack based clouds

getOpenstackBasedPlatforms() public static méthode

Gets the list of OpenStack based clouds
public static getOpenstackBasedPlatforms ( ) : array
Résultat array Returns the list of OpenStack based clouds

getPublicPlatforms() public static méthode

Gets the list of public clouds
public static getPublicPlatforms ( ) : array
Résultat array Returns the list of public clouds

getRackspacePlatforms() public static méthode

Returns the list of Rackspace clouds
public static getRackspacePlatforms ( ) : array
Résultat array

isCloudstack() public static méthode

Checks wheter specified cloud is CloudStack based
public static isCloudstack ( string $platform ) : boolean
$platform string A platform name
Résultat boolean Returns true if specified cloud is CloudStack based or false otherwise

isOpenstack() public static méthode

Checks wheter specified cloud is OpenStack based
public static isOpenstack ( string $platform, boolean $canonical = false ) : boolean
$platform string A platform name
$canonical boolean optional Only canonical OpenStack platforms
Résultat boolean Returns true if specified cloud is OpenStack based or false otherwise

isPublic() public static méthode

Checks wheter specified cloud is public
public static isPublic ( string $platform ) : boolean
$platform string A platform name
Résultat boolean Returns true if specified cloud is public or false otherwise

isRackspace() public static méthode

Checks wheter specified cloud is Rackspace cloud
public static isRackspace ( string $platform ) : boolean
$platform string A platform name
Résultat boolean Returns true if specified cloud is Rackspace cloud or false otherwise

warmup() public static méthode

Clears static cache
public static warmup ( )