scrapyd-client
Module for running scrapyd-client commands.
Installation
dagger install github.com/mxdev88/daggerverse/scrapyd-client@76371318eee6a8123077c09935b06761b9f79cdc
Entrypoint
Return Type
ScrapydClient !
Example
func (m *myModule) 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
func (m *myModule) 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
func (m *myModule) example(source *Directory, includeDependencies bool) *Container {
return dag.
ScrapydClient().
Deploy(source, includeDependencies)
}