r2-sync
No long description provided.
Installation
dagger install github.com/tsirysndr/daggerverse/r2-sync@c515afb0c4d536fc8d86b3016dc0dc7c62631006
Entrypoint
Return Type
R2Sync
Example
dagger -m github.com/tsirysndr/daggerverse/r2-sync@c515afb0c4d536fc8d86b3016dc0dc7c62631006 call \
func (m *myModule) example() *R2Sync {
return dag.
R2Sync()
}
@function
def example() -> dag.R2Sync:
return (
dag.r2_sync()
)
@func()
example(): R2Sync {
return dag
.r2Sync()
}
Types
R2Sync 🔗
upload() 🔗
Uploads files to Cloudlare R2 bucket.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
accessKey | Secret ! | - | No description provided |
secretKey | Secret ! | - | No description provided |
bucket | String ! | - | No description provided |
endpointUrl | String ! | - | No description provided |
region | String | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/r2-sync@c515afb0c4d536fc8d86b3016dc0dc7c62631006 call \
upload --access-key env:MYSECRET --secret-key env:MYSECRET --bucket string --endpoint-url string
func (m *myModule) example(ctx context.Context, accessKey *Secret, secretKey *Secret, bucket string, endpointUrl string) string {
return dag.
R2Sync().
Upload(ctxaccessKey, secretKey, bucket, endpointUrl)
}
@function
async def example(access_key: dagger.Secret, secret_key: dagger.Secret, bucket: str, endpoint_url: str) -> str:
return await (
dag.r2_sync()
.upload(access_key, secret_key, bucket, endpoint_url)
)
@func()
async example(accessKey: Secret, secretKey: Secret, bucket: string, endpointUrl: string): Promise<string> {
return dag
.r2Sync()
.upload(accessKey, secretKey, bucket, endpointUrl)
}
dev() 🔗
Returns a container with AWS CLI installed.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/r2-sync@c515afb0c4d536fc8d86b3016dc0dc7c62631006 call \
dev
func (m *myModule) example() *Container {
return dag.
R2Sync().
Dev()
}
@function
def example() -> dagger.Container:
return (
dag.r2_sync()
.dev()
)
@func()
example(): Container {
return dag
.r2Sync()
.dev()
}