updateRegistryTag method

Future<UpdatedRegistryTag> updateRegistryTag({
  1. required String image,
  2. required String tag,
  3. bool deleteSource = false,
})

Implementation

Future<UpdatedRegistryTag> updateRegistryTag({required String image, required String tag, bool deleteSource = false}) async {
  final output = await room.invoke(
    toolkit: 'containers',
    tool: 'update_registry_tag',
    input: ToolContentInput(JsonContent(json: {'image': image, 'tag': tag, 'delete_source': deleteSource})),
  );
  if (output is! ToolContentOutput || output.content is! JsonContent) {
    throw _unexpectedResponseError(operation: 'update_registry_tag');
  }
  return UpdatedRegistryTag.fromJson((output.content as JsonContent).json);
}