Documentation
¶
Index ¶
- Variables
- func DirectUpload(url string, contentMD5 []byte, size int64, data io.Reader) error
- func DownloadFileFromHTTP(ctx context.Context, ref storage.DataReference) (io.ReadCloser, error)
- func Register(ctx context.Context, args []string, cfg *config.Config, ...) error
- func RemoteRegisterCommand() *cobra.Command
- type HTTPClient
- type Result
- type SignedURLPatternMatcher
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *storage.DataStore
Functions ¶
func DirectUpload ¶ added in v0.5.9
func DownloadFileFromHTTP ¶
func DownloadFileFromHTTP(ctx context.Context, ref storage.DataReference) (io.ReadCloser, error)
func RemoteRegisterCommand ¶
RemoteRegisterCommand will return register command
Types ¶
type HTTPClient ¶
HTTPClient interface
type SignedURLPatternMatcher ¶ added in v0.5.9
var (
SignedURLPattern SignedURLPatternMatcher = regexp.MustCompile(`https://((storage\.googleapis\.com/(?P<bucket_gcs>[^/]+))|((?P<bucket_s3>[^\.]+)\.s3\.amazonaws\.com)|(.*\.blob\.core\.windows\.net/(?P<bucket_az>[^/]+)))/(?P<path>[^?]*)`)
)
Click to show internal directories.
Click to hide internal directories.