mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-15 22:29:03 +00:00
* Updated doc structure --------- Co-authored-by: docs-builder <docs-builder@localhost>
1.3 KiB
1.3 KiB
Referenced
Session::PullImageAsync(PullImageOptions)forwards a struct whose C shape is{ uri, progressCallback, progressCallbackContext, registryAuth }.Session::PushImageAsync(PushImageOptions)forwards a struct whose C shape is{ image, registryAuth, progressCallback, progressCallbackContext }.Session::TagImage(TagImageOptions)forwards a struct whose C shape is{ image, repo, tag }.Session::CreateVhdVolume(VhdOptions)andSessionSettings::VhdRequirements(VhdOptions)useVhdOptionspropertiesName,Size,Type, andOwner.WslcService::GetVersion()returns aServiceVersioncreated from Cmajor,minor, andrevisionvalues.
PullImageOptions pullOptions = /* construct using the wrapper available in your build */;
auto pull = session.PullImageAsync(pullOptions);
pull.Progress([](auto&&, ImageProgress const& p) { /* ... */ });
co_await pull;
PushImageOptions pushOptions = /* construct using the wrapper available in your build */;
co_await session.PushImageAsync(pushOptions);
TagImageOptions tagOptions = /* construct using the wrapper available in your build */;
session.TagImage(tagOptions);
VhdOptions vhdOptions = /* construct using the wrapper available in your build */;
session.CreateVhdVolume(vhdOptions);
auto version = WslcService::GetVersion();
(void)version;