-
Notifications
You must be signed in to change notification settings - Fork 146
refactor(io): use the registry pattern for IO schemes #709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alessandro-nori
wants to merge
10
commits into
apache:main
Choose a base branch
from
alessandro-nori:io_registry_single_module
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+621
−128
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
475b3a1
implement register pattern for io
alessandro-nori 00c3d13
update LoadFS doc
alessandro-nori f79c361
improvements to tests
alessandro-nori 4116126
panic if attempting to register the same scheme twice
alessandro-nori aa64b9c
move io config keys to `io` package
alessandro-nori cb86137
add some tests for mem io
alessandro-nori 7bac60c
run integration tests on all `io` directory
alessandro-nori 96e4f26
use mutex to check for duplicated scheme in registry
alessandro-nori 9271d2c
address review comments
alessandro-nori 3681020
refactor config key names
alessandro-nori File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
|
|
||
| package io | ||
|
|
||
| // Constants for S3 configuration options | ||
| const ( | ||
| S3Region = "s3.region" | ||
| S3SessionToken = "s3.session-token" | ||
| S3SecretAccessKey = "s3.secret-access-key" | ||
| S3AccessKeyID = "s3.access-key-id" | ||
| S3EndpointURL = "s3.endpoint" | ||
| S3ProxyURI = "s3.proxy-uri" | ||
| S3ConnectTimeout = "s3.connect-timeout" | ||
| S3SignerURI = "s3.signer.uri" | ||
| S3ForceVirtualAddressing = "s3.force-virtual-addressing" | ||
| ) | ||
|
|
||
| // Constants for GCS configuration options | ||
| const ( | ||
| GCSEndpoint = "gcs.endpoint" | ||
| GCSKeyPath = "gcs.keypath" | ||
| GCSJSONKey = "gcs.jsonkey" | ||
| GCSCredType = "gcs.credtype" | ||
| GCSUseJSONAPI = "gcs.usejsonapi" // set to anything to enable | ||
| ) | ||
|
|
||
| // Constants for Azure configuration options | ||
| const ( | ||
| ADLSSasTokenPrefix = "adls.sas-token." | ||
| ADLSConnectionStringPrefix = "adls.connection-string." | ||
| ADLSSharedKeyAccountName = "adls.auth.shared-key.account.name" | ||
| ADLSSharedKeyAccountKey = "adls.auth.shared-key.account.key" | ||
| ADLSEndpoint = "adls.endpoint" | ||
| ADLSProtocol = "adls.protocol" | ||
|
|
||
| // Not in use yet | ||
| // ADLSReadBlockSize = "adls.read.block-size-bytes" | ||
| // ADLSWriteBlockSize = "adls.write.block-size-bytes" | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to nesting, all integration tests aren't running in CI anymore
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 😬 ! Fixed it in 4556800
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍🏻