Skip to content

Add API for s3 bucket#40

Merged
Karolk99 merged 3 commits intomasterfrom
hls-s3-credentials
Nov 15, 2023
Merged

Add API for s3 bucket#40
Karolk99 merged 3 commits intomasterfrom
hls-s3-credentials

Conversation

@Karolk99
Copy link
Copy Markdown
Contributor

Comment thread test/jellyfish/room_test.exs
Comment thread lib/jellyfish/component/hls.ex
@Karolk99 Karolk99 requested a review from Rados13 November 14, 2023 17:07
Comment thread lib/jellyfish/room.ex Outdated

defp validate_s3_credentials(credentials) do
keys = Map.keys(credentials)
if @s3_kyes -- keys == [] and keys -- @s3_kyes, do: :ok, else: {:error, :component_validation}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this if condition missing something?

Comment thread lib/jellyfish/room.ex Outdated
alias Jellyfish.{Client, Component, Peer, Utils}
alias Jellyfish.Exception.StructureError

@s3_kyes [:access_key_id, :secret_access_key, :region, :bucket]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be @s3_keys?

@Karolk99 Karolk99 merged commit b22c661 into master Nov 15, 2023
@Karolk99 Karolk99 deleted the hls-s3-credentials branch November 15, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants