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