-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
transform_storage_exn
to Storage_utils
This is so that `Storage_migrate` can use this function, otherwise there would be a dependency cycle. This function also sounds like a utility function. Also add an mli file for `Storage_utils`. Signed-off-by: Vincent Liu <[email protected]>
- Loading branch information
1 parent
93eea2b
commit f673d81
Showing
8 changed files
with
120 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
val string_of_vdi_type : | ||
[< `cbt_metadata | ||
| `crashdump | ||
| `ephemeral | ||
| `ha_statefile | ||
| `metadata | ||
| `pvs_cache | ||
| `redo_log | ||
| `rrd | ||
| `suspend | ||
| `system | ||
| `user ] | ||
-> string | ||
|
||
val vdi_type_of_string : | ||
string | ||
-> [> `cbt_metadata | ||
| `crashdump | ||
| `ephemeral | ||
| `ha_statefile | ||
| `metadata | ||
| `pvs_cache | ||
| `redo_log | ||
| `rrd | ||
| `suspend | ||
| `system | ||
| `user ] | ||
|
||
val redirectable_rpc : | ||
redirect_to_ip:(ip:string -> Rpc.call -> Rpc.response) | ||
-> original:(Rpc.call -> Rpc.response) | ||
-> Rpc.call | ||
-> Rpc.response | ||
|
||
type connection_args = { | ||
url: Http.Url.t | ||
; pool_secret: SecretString.t option | ||
; verify_cert: Stunnel.verification_config option | ||
} | ||
|
||
val localhost_connection_args : unit -> connection_args | ||
|
||
val intra_pool_connection_args_of_ip : string -> connection_args | ||
|
||
val connection_args_of_uri : verify_dest:bool -> string -> connection_args | ||
|
||
val intra_pool_rpc_of_ip : | ||
srcstr:string -> dststr:string -> ip:string -> Rpc.call -> Rpc.response | ||
|
||
val rpc : | ||
srcstr:string -> dststr:string -> connection_args -> Rpc.call -> Rpc.response | ||
|
||
val transform_storage_exn : (unit -> 'a) -> 'a | ||
(** [transform_storage_exn f] runs [f], rethrowing any storage error as a nice XenAPI error *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters