Files
WSL/doc/docs/api-reference/cpp/data-classes/referenced.md
T
Craig Loewenanddocs-builder 7ba8496e8c Added WSLc API docs (#40922)
* Updated doc structure

---------

Co-authored-by: docs-builder <docs-builder@localhost>
2026-06-26 21:28:07 +00:00

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) and SessionSettings::VhdRequirements(VhdOptions) use VhdOptions properties Name, Size, Type, and Owner.
  • WslcService::GetVersion() returns a ServiceVersion created from C major, minor, and revision values.
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;