C# Класс MCloud.NodeDriver

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreateNode ( string name, NodeSize size, NodeImage image, NodeLocation location, NodeAuth auth ) : Node

Create a new node using the default options for this node driver type.

CreateNode ( string name, NodeSize size, NodeImage image, NodeLocation location, NodeAuth auth, NodeOptions options ) : Node
DestroyNode ( Node node ) : void

Destroy the node, once a node is destroyed it is no longer usable and can not be recreated.

ListImages ( ) : List

A list of images available from the cloud provider

ListImages ( NodeLocation location ) : List

A list of images available from the cloud provider at a specific location.

ListLocations ( ) : List

A list of all the data center locations from this cloud provider

ListNodes ( ) : List

Get a list of nodes that exist on the cloud provider.

ListSizes ( ) : List

A list of sizes available from the cloud provider.

ListSizes ( NodeLocation location ) : List

A list of sizes available from the cloud provider, at a specific location.

NodeDriver ( string key, string secret ) : System
RebootNode ( Node node ) : void

Reboot the node.

UpdateNode ( Node node ) : void

Get updated information on the specified node from the cloud provider. You would use this method to check to see if a node has changed its state.

Описание методов

CreateNode() публичный Метод

Create a new node using the default options for this node driver type.
public CreateNode ( string name, NodeSize size, NodeImage image, NodeLocation location, NodeAuth auth ) : Node
name string
size NodeSize
image NodeImage
location NodeLocation
auth NodeAuth
Результат Node

CreateNode() публичный абстрактный Метод

public abstract CreateNode ( string name, NodeSize size, NodeImage image, NodeLocation location, NodeAuth auth, NodeOptions options ) : Node
name string
size NodeSize
image NodeImage
location NodeLocation
auth NodeAuth
options NodeOptions
Результат Node

DestroyNode() публичный абстрактный Метод

Destroy the node, once a node is destroyed it is no longer usable and can not be recreated.
public abstract DestroyNode ( Node node ) : void
node Node
Результат void

ListImages() публичный абстрактный Метод

A list of images available from the cloud provider
public abstract ListImages ( ) : List
Результат List

ListImages() публичный абстрактный Метод

A list of images available from the cloud provider at a specific location.
public abstract ListImages ( NodeLocation location ) : List
location NodeLocation
Результат List

ListLocations() публичный абстрактный Метод

A list of all the data center locations from this cloud provider
public abstract ListLocations ( ) : List
Результат List

ListNodes() публичный абстрактный Метод

Get a list of nodes that exist on the cloud provider.
public abstract ListNodes ( ) : List
Результат List

ListSizes() публичный абстрактный Метод

A list of sizes available from the cloud provider.
public abstract ListSizes ( ) : List
Результат List

ListSizes() публичный абстрактный Метод

A list of sizes available from the cloud provider, at a specific location.
public abstract ListSizes ( NodeLocation location ) : List
location NodeLocation
Результат List

NodeDriver() публичный Метод

public NodeDriver ( string key, string secret ) : System
key string
secret string
Результат System

RebootNode() публичный абстрактный Метод

Reboot the node.
public abstract RebootNode ( Node node ) : void
node Node
Результат void

UpdateNode() публичный абстрактный Метод

Get updated information on the specified node from the cloud provider. You would use this method to check to see if a node has changed its state.
public abstract UpdateNode ( Node node ) : void
node Node
Результат void