|
|
20.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|
|
|
Translated by
Luke Na
|
|
|
|
Located in
cmd/snap/cmd_create_user.go:33
|
|
|
21.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|
|
|
Translated by
Luke Na
|
|
|
|
Located in
cmd/snap/cmd_debug.go:29
|
|
|
22.
|
|
|

The delete-key command deletes the local cryptographic key pair with 
the given name.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|

delete-key 命令将会删除给定名称所对应的本地加密密钥对。
|
|
Translated by
Luke Na
|
|
|
|
Located in
cmd/snap/cmd_delete_key.go:42
|
|
|
23.
|
|
|

The disable command disables a snap. The binaries and services of the 
snap will no longer be available, but all the data is still available 
and the snap can easily be enabled again.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|

disable 命令禁用 snap。snap 的二进制文件和服务将不再可用,但所有数据仍然可用,并且可以轻松地再次启用 snap。
|
|
Translated by
Luke Na
|
|
|
|
Located in
cmd/snap/cmd_snap_op.go:126
|
|
|
24.
|
|
|
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|
|
|
Translated by
Luke Na
|
|
|
|
Located in
cmd/snap/cmd_disconnect.go:41
|
|
|
25.
|
|
|

The download command downloads the given snap and its supporting assertions 
to the current directory with .snap and .assert file extensions, respectively.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|

download 命令会将给定的 snap 包及其支持的声明 下载到当前目录,分别使用 .snap 和 .assert 文件扩展名。
|
|
Translated by
Luke Na
|
|
|
|
Located in
cmd/snap/cmd_download.go:52
|
|
|
26.
|
|
|

The enable command enables a snap that was previously disabled.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|

enable 命令用于启用此前被禁用的 snap。
|
|
Translated by
Luke Na
|
|
|
|
Located in
cmd/snap/cmd_snap_op.go:122
|
|
|
27.
|
|
|

The export-key command exports a public key assertion body that may be 
imported by other systems.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|

export-key 命令导出公钥断言的主体,可供其他系统导入。
|
|
Translated by
Luke Na
|
|
|
|
Located in
cmd/snap/cmd_export_key.go:43
|
|
|
28.
|
|
|

The fde-setup-request command is used inside the fde-setup hook. It will 
return information about what operation for full-disk encryption is 
requested and auxiliary data to complete this operation.

The fde-setup hook should do what is requested and then call 
"snapctl fde-setup-result" and pass the result data to stdin.

Here is an example for how the fde-setup hook is called initially: 
$ snapctl fde-setup-request 
{"op":"features"} 
$ echo '{"features": []}' | snapctl fde-setup-result

Alternatively the hook could reply with: 
$ echo '{"error":"hardware-unsupported"}' | snapctl fde-setup-result

And then it is called again with a request to do the initial key setup: 
$ snapctl fde-setup-request 
{"op":"initial-setup", "key": "key-to-seal"} 
$ echo "{"sealed-key":"$base64_encoded_sealed_key"}" | snapctl fde-setup-result
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|
|
|
Translated by
Luke Na
|
|
|
|
Located in
overlord/hookstate/ctlcmd/fde_setup.go:36
|
|
|
29.
|
|
|

The fde-setup-result command sets the result data for a fde-setup hook 
reading it from stdin.

For example: 
When the fde-setup hook is called with "op":"features: 
$ echo '{"features": []}' | snapctl fde-setup-result

When the fde-setup hook is called with "op":"initial-setup": 
$ echo "{"sealed-key":"$base64_encoded_sealed_key"}" | snapctl fde-setup-result
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|
|
|
Translated by
Luke Na
|
|
|
|
Located in
overlord/hookstate/ctlcmd/fde_setup.go:101
|