File tree Expand file tree Collapse file tree
wit/obelisk-flyio_activity-fly-http@1.0.0-beta Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ obelisk client execution submit -f obelisk-flyio:activity-fly-http/ips@1.0.0-bet
5959```
6060Allocate an IP:
6161``` sh
62- IP=$( obelisk client execution submit -f --json obelisk-flyio:activity-fly-http/ips@1.0.0-beta.allocate -- \
62+ IP=$( obelisk client execution submit -f --json obelisk-flyio:activity-fly-http/ips@1.0.0-beta.allocate-unsafe -- \
6363\" $FLY_APP_NAME \" ' { "config":{ "ipv6": {"region": null} } }' | jq -r ' .[-1].ok' )
6464```
6565Release an IP:
Original file line number Diff line number Diff line change @@ -172,7 +172,10 @@ where
172172}
173173
174174impl ips:: Guest for crate :: Component {
175- fn allocate ( app_name : String , request : ips:: IpRequest ) -> Result < ips:: IpAddress , String > {
175+ fn allocate_unsafe (
176+ app_name : String ,
177+ request : ips:: IpRequest ,
178+ ) -> Result < ips:: IpAddress , String > {
176179 ( || {
177180 let app_name = AppName :: new ( app_name) ?;
178181 block_on ( allocate_ip ( app_name, request) )
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ interface ips {
5454 ip-variant : ip-variant ,
5555 }
5656
57- /// Allocate an IP address
58- /// Idempotency note : Retry of a success will allocate another IP address.
57+ /// Allocate an IP address.
58+ /// Non idempotent : Retry of a success will allocate another IP address.
5959 /// Upon allocating an IP the caller should use `list` and `release` to prevent this issue.
60- allocate : func (app-name : string , request : ip-request ) -> result <ip-address , string >;
60+ allocate-unsafe : func (app-name : string , request : ip-request ) -> result <ip-address , string >;
6161
6262 /// List allocated IP addresses
6363 %list : func (app-name : string ) -> result <list <ip-detail >, string >;
You can’t perform that action at this time.
0 commit comments