Skip to content

UploadLayerPart

Source: src/AWS/ECRPublic/UploadLayerPart.ts

Runtime binding for ecr-public:UploadLayerPart.

Uploads one chunk of an in-flight image layer upload to the bound PublicRepository. Provide the implementation with Effect.provide(AWS.ECRPublic.UploadLayerPartHttp).

// init
const uploadLayerPart = yield* AWS.ECRPublic.UploadLayerPart(repository);
// runtime
yield* uploadLayerPart({
uploadId,
partFirstByte: 0,
partLastByte: blob.byteLength - 1,
layerPartBlob: blob,
});