Skip to content

Commit

Permalink
Bring back Blob support
Browse files Browse the repository at this point in the history
Signed-off-by: Hongxin Liang <[email protected]>
  • Loading branch information
honnix committed Oct 9, 2023
1 parent 8284ee3 commit 8d360ba
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ public static <T> SdkBindingData<List<T>> of(SdkLiteralType<T> elementType, List
return SdkBindingData.literal(collections(elementType), collection);
}

public static <T> SdkBindingData<T> of(SdkLiteralType<T> type, T value) {
return SdkBindingData.literal(type, value);
}

/**
* Creates a {@code SdkBindingData} for a flyte Blob with the given value.
*
Expand Down Expand Up @@ -307,4 +311,8 @@ public static <T> SdkBindingData<Map<String, T>> ofBindingMap(

return SdkBindingData.bindingMap(valuesType, valueMap);
}

public static SdkBindingData<Blob> of(Blob value) {
return SdkBindingData.literal(SdkLiteralTypes.blobs(value.metadata().type()), value);
}
}

0 comments on commit 8d360ba

Please sign in to comment.