-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
image-rs: Redefine the construction of ImageClient
ImageClient is a client for image management. It has an associated field ImageConfig that could specify the image work directory. Previously, we created an ImageClient instance with default(), which used the `CC_IMAGE_WORK_DIR` environment variable to set the image work directory. This approach was not flexible or reliable for different scenarios. Now, we offer a new() method that accepts the image work directory as a parameter, and returns an ImageClient instance with an ImageConfig that uses that directory. This way, users can customize the image work directory as they wish. Fixes #415 Signed-off-by: ChengyuZhu6 <chengyu.zhu@intel.com>
- Loading branch information
Showing
4 changed files
with
31 additions
and
18 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