Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
492233e7
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
492233e7
编写于
2月 12, 2013
作者:
J
John Ferlan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
api: Complete list of function and naming conventions
上级
cc24589e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
64 addition
and
28 deletion
+64
-28
docs/api.html.in
docs/api.html.in
+64
-28
未找到文件。
docs/api.html.in
浏览文件 @
492233e7
...
...
@@ -89,38 +89,74 @@
set of nodes.
</p></li>
</ul>
<h2><a
name=
"Functions"
>
Functions and naming
conventions
</a></h2>
<h2><a
name=
"Functions"
>
Functions and Naming Conventions
</a></h2>
<p>
The naming of the functions present in the library is usually
made of
a prefix describing the object associated to the function
composed by
a prefix describing the object associated to the function
and a verb describing the action on that object.
</p>
<p>
For each first class object you will find
api
s
<p>
For each first class object you will find
API
s
for the following actions:
</p>
<ul>
<li><b>
Lookup
</b>
:...LookupByName,
</li>
<li><b>
Enumeration
</b>
:virConnectList... and virConnectNumOf...:
those are used to enumerate a set of object available to an given
hypervisor connection like:
<code
class=
'docref'
>
virConnectListDomains
</code>
,
<code
class=
'docref'
>
virConnectNumOfDomains
</code>
,
<code
class=
'docref'
>
virConnectListNetworks
</code>
,
<code
class=
'docref'
>
virConnectListStoragePools
</code>
, etc.
</li>
<li><b>
Description
</b>
: ...GetInfo: those are generic accessor providing
a set of informations about an object, they are
<code
class=
'docref'
>
virNodeGetInfo
</code>
,
<code
class=
'docref'
>
virDomainGetInfo
</code>
,
<code
class=
'docref'
>
virStoragePoolGetInfo
</code>
,
<code
class=
'docref'
>
virStorageVolGetInfo
</code>
.
</li>
<li><b>
Accessors
</b>
: ...Get... and ...Set...: those are more specific
accessors to query or modify the given object, like
<code
class=
'docref'
>
virConnectGetType
</code>
,
<code
class=
'docref'
>
virDomainGetMaxMemory
</code>
,
<code
class=
'docref'
>
virDomainSetMemory
</code>
,
<code
class=
'docref'
>
virDomainGetVcpus
</code>
,
<code
class=
'docref'
>
virStoragePoolSetAutostart
</code>
,
<code
class=
'docref'
>
virNetworkGetBridgeName
</code>
, etc.
</li>
<li><b>
Creation
</b>
:
</li>
<li><b>
Destruction
</b>
: ...
</li>
<li><b>
Lookup
</b>
[...LookupBy...]
<p>
Used to perform lookups on objects by some type of identifier,
such as:
</p>
<ul>
<li><code
class=
'docref'
>
virDomainLookupByID
</code></li>
<li><code
class=
'docref'
>
virDomainLookupByName
</code></li>
<li><code
class=
'docref'
>
virDomainLookupByUUID
</code></li>
<li><code
class=
'docref'
>
virDomainLookupByUUIDString
</code></li>
</ul>
</li>
<li><b>
Enumeration
</b>
[virConnectList..., virConnectNumOf...]
<p>
Used to enumerate a set of object available to an given
hypervisor connection such as:
</p>
<ul>
<li><code
class=
'docref'
>
virConnectListDomains
</code></li>
<li><code
class=
'docref'
>
virConnectNumOfDomains
</code></li>
<li><code
class=
'docref'
>
virConnectListNetworks
</code></li>
<li><code
class=
'docref'
>
virConnectListStoragePools
</code></li>
</ul>
</li>
<li><b>
Description
</b>
[...GetInfo]
<p>
Generic accessor providing a set of generic information about an
object, such as:
</p>
<ul>
<li><code
class=
'docref'
>
virNodeGetInfo
</code></li>
<li><code
class=
'docref'
>
virDomainGetInfo
</code></li>
<li><code
class=
'docref'
>
virStoragePoolGetInfo
</code></li>
<li><code
class=
'docref'
>
virStorageVolGetInfo
</code></li>
</ul>
</li>
<li><b>
Accessors
</b>
[...Get..., ...Set...]
<p>
Specific accessors used to query or modify data for the given object,
such as:
</p>
<ul>
<li><code
class=
'docref'
>
virConnectGetType
</code></li>
<li><code
class=
'docref'
>
virDomainGetMaxMemory
</code></li>
<li><code
class=
'docref'
>
virDomainSetMemory
</code></li>
<li><code
class=
'docref'
>
virDomainGetVcpus
</code></li>
<li><code
class=
'docref'
>
virStoragePoolSetAutostart
</code></li>
<li><code
class=
'docref'
>
virNetworkGetBridgeName
</code></li>
</ul>
</li>
<li><b>
Creation
</b>
[...Create, ...CreateXML]
<p>
Used to create and start objects. The ...CreateXML APIs will create
the object based on an XML description, while the ...Create APIs will
create the object based on existing object pointer, such as:
</p>
<ul>
<li><code
class=
'docref'
>
virDomainCreate
</code></li>
<li><code
class=
'docref'
>
virDomainCreateXML
</code></li>
<li><code
class=
'docref'
>
virNetworkCreate
</code></li>
<li><code
class=
'docref'
>
virNetworkCreateXML
</code></li>
</ul>
</li>
<li><b>
Destruction
</b>
[...Destroy]
<p>
Used to shutdown or deactivate and destroy objects, such as:
</p>
<ul>
<li><code
class=
'docref'
>
virDomainDestroy
</code></li>
<li><code
class=
'docref'
>
virNetworkDestroy
</code></li>
<li><code
class=
'docref'
>
virStoragePoolDestroy
</code></li>
</ul>
</li>
</ul>
<p>
For more in-depth details of the storage related APIs see
<a
href=
"storage.html"
>
the storage management page
</a>
.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录