Interface IImageUpdateService
- Namespace
- Bielu.Microservices.Orchestrator.Abstractions
- Assembly
- Bielu.Microservices.Orchestrator.dll
Detects whether a newer version of a managed instance's image is available and recreates the instance's containers to adopt the new image.
public interface IImageUpdateService
Methods
CheckAllAsync(ImageUpdateOptions?, CancellationToken)
Checks every managed instance and returns the per-instance status.
Task<IReadOnlyList<ImageUpdateStatus>> CheckAllAsync(ImageUpdateOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsImageUpdateOptionscancellationTokenCancellationToken
Returns
CheckAsync(string, ImageUpdateOptions?, CancellationToken)
Checks whether an image update is available for the given managed instance.
Task<ImageUpdateStatus> CheckAsync(string instanceId, ImageUpdateOptions? options = null, CancellationToken cancellationToken = default)
Parameters
instanceIdstringThe managed instance identifier.
optionsImageUpdateOptionsCheck options (e.g. whether to pull first).
cancellationTokenCancellationTokenCancellation token.
Returns
UpdateAsync(string, ImageUpdateOptions?, CancellationToken)
Pulls the latest image and, if the digest changed (or Force is set), removes the existing containers of the instance and recreates them from the persisted OriginalRequest.
Task<ImageUpdateResult> UpdateAsync(string instanceId, ImageUpdateOptions? options = null, CancellationToken cancellationToken = default)
Parameters
instanceIdstringoptionsImageUpdateOptionscancellationTokenCancellationToken