r2-sync
No long description provided.
Installation
dagger install github.com/tsirysndr/daggerverse/r2-sync@36afdd728dde0c5789b3b1c653a94953c1d64c64
Entrypoint
Return Type
R2Sync
Example
dagger -m github.com/tsirysndr/daggerverse/r2-sync@36afdd728dde0c5789b3b1c653a94953c1d64c64 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
StringKind !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
accessKey | Secret ! | - | No description provided |
secretKey | Secret ! | - | No description provided |
bucket | StringKind ! | - | No description provided |
endpointUrl | StringKind ! | - | No description provided |
region | StringKind | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/r2-sync@36afdd728dde0c5789b3b1c653a94953c1d64c64 call \
upload
func (m *myModule) example(accessKey , secretKey , bucket , endpointUrl ) {
return dag.
R2Sync().
Upload(accessKey, secretKey, bucket, endpointUrl)
}
@function
def example(access_key: , secret_key: , bucket: , endpoint_url: ) -> :
return (
dag.r2_sync()
.upload(access_key, secret_key, bucket, endpoint_url)
)
@func()
example(accessKey: , secretKey: , bucket: , endpointUrl: ): {
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@36afdd728dde0c5789b3b1c653a94953c1d64c64 call \
dev
func (m *myModule) example() {
return dag.
R2Sync().
Dev()
}
@function
def example() -> :
return (
dag.r2_sync()
.dev()
)
@func()
example(): {
return dag
.r2Sync()
.dev()
}