package
0.0.0-20240801215215-e2d2336f8143
Repository: https://github.com/lf-edge/eve-libs.git
Documentation: pkg.go.dev
# README
zedUpload
This directory contains functions for uploading and downloading to various remote file storage services, specifically:
- AWS S3
- Azure Blob
- http/s
- sftp
Testing
In order to run full tests, you need to have a remote account. To run the tests, set an environment variable for the credentials you need. Those are listed below. If a credential is missing for a test, it simply will not run.
The required environment variables are as follows:
- AWS:
TEST_AWS_BUCKET
,TEST_AWS_KEY
,TEST_AWS_SECRET
,TEST_AWS_REGION
- Azure:
TEST_AZURE_CONTAINER
,TEST_AZURE_ACCOUNT_NAME
,TEST_AZURE_ACCOUNT_KEY
- http: none are needed, as tests use the public ptsv2 for post testing, and Cirros Cloud and Ubuntu Images for download testing
- sftp:
TEST_SFTP_DIR
,TEST_SFTP_USER
,TEST_SFTP_PASS
,TEST_SFTP_REGION
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
NewDronaCtx.
No description provided by the author
WithHTTPInactivityTimeout set the inactivity timeout for HTTP datastore.
# Constants
Operation types supported.
Operation types supported.
SingleMB represents data size of 1MB.
timer for updating client for stats.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Operation types supported.
Operation types supported.
Operation types supported.
Operation types supported.
Operation types supported.
Operation types supported.
Operation types supported.
Operation types supported.
No description provided by the author
Operation types supported.
Operation types supported.
Operation types supported.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
ChunkData contains the details of Chunks being downloaded.
No description provided by the author
No description provided by the author
GsTransportMethod stores data needed to communicate with Google Cloud Storage.
No description provided by the author
OCITransportMethod transport method to send images from OCI distribution registries.
No description provided by the author
No description provided by the author
# Interfaces
Interface for various transport implementation.
# Type aliases
SyncerDestOption is a function that configures a DronaEndpoint.
Sync Operation type.
Sync Transport Type.