scrapyd-client
Module for running scrapyd-client commands.
Installation
dagger install github.com/mxdev88/daggerverse/scrapyd-client@97ac1e81c8710054ef2af99d30e05627f13c7ee3
Entrypoint
Return Type
ScrapydClient !
Example
dagger -m github.com/mxdev88/daggerverse/scrapyd-client@97ac1e81c8710054ef2af99d30e05627f13c7ee3 call \
func (m *myModule) example() *ScrapydClient {
return dag.
ScrapydClient()
}
@function
def example() -> dag.ScrapydClient:
return (
dag.scrapyd_client()
)
@func()
example(): ScrapydClient {
return dag
.scrapydClient()
}
Types
ScrapydClient 🔗
base() 🔗
Build base environment
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
url | String | - | No description provided |
username | String | - | No description provided |
password | Secret | - | No description provided |
sshSock | Socket | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example() *Container {
return dag.
ScrapydClient().
Base()
}
@function
def example() -> dagger.Container:
return (
dag.scrapyd_client()
.base()
)
@func()
example(): Container {
return dag
.scrapydClient()
.base()
}
deploy() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | A directory. |
includeDependencies | Boolean ! | true | No description provided |
url | String | null | No description provided |
username | String | null | No description provided |
password | Secret | null | No description provided |
sshSock | Socket | null | No description provided |
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(source *Directory, includeDependencies bool) *Container {
return dag.
ScrapydClient().
Deploy(source, includeDependencies)
}
@function
def example(source: dagger.Directory, include_dependencies: bool) -> dagger.Container:
return (
dag.scrapyd_client()
.deploy(source, include_dependencies)
)
@func()
example(source: Directory, includeDependencies: boolean): Container {
return dag
.scrapydClient()
.deploy(source, includeDependencies)
}