Table of Contents

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

options ImageUpdateOptions
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<ImageUpdateStatus>>

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

instanceId string

The managed instance identifier.

options ImageUpdateOptions

Check options (e.g. whether to pull first).

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ImageUpdateStatus>

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

instanceId string
options ImageUpdateOptions
cancellationToken CancellationToken

Returns

Task<ImageUpdateResult>