pocketci
No long description provided.
Installation
dagger install github.com/franela/pocketci/module@602729cb8cf92ea5040767b3f3c18153aafb8942
Entrypoint
Return Type
Pocketci
Example
dagger -m github.com/franela/pocketci/module@602729cb8cf92ea5040767b3f3c18153aafb8942 call \
func (m *myModule) example() *Pocketci {
return dag.
Pocketci()
}
@function
def example() -> dag.Pocketci:
return (
dag.pocketci()
)
@func()
example(): Pocketci {
return dag
.pocketci()
}
Types
Pocketci 🔗
publish() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
address | String ! | - | No description provided |
username | String ! | - | No description provided |
password | Secret ! | - | No description provided |
Example
dagger -m github.com/franela/pocketci/module@602729cb8cf92ea5040767b3f3c18153aafb8942 call \
publish --src DIR_PATH --address string --username string --password env:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, address string, username string, password *Secret) string {
return dag.
Pocketci().
Publish(ctx, src, address, username, password)
}
@function
async def example(src: dagger.Directory, address: str, username: str, password: dagger.Secret) -> str:
return await (
dag.pocketci()
.publish(src, address, username, password)
)
@func()
async example(src: Directory, address: string, username: string, password: Secret): Promise<string> {
return dag
.pocketci()
.publish(src, address, username, password)
}
baseContainer() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
Example
dagger -m github.com/franela/pocketci/module@602729cb8cf92ea5040767b3f3c18153aafb8942 call \
base-container --src DIR_PATH
func (m *myModule) example(src *Directory) *Container {
return dag.
Pocketci().
BaseContainer(src)
}
@function
def example(src: dagger.Directory) -> dagger.Container:
return (
dag.pocketci()
.base_container(src)
)
@func()
example(src: Directory): Container {
return dag
.pocketci()
.baseContainer(src)
}
serve() 🔗
Starts the pocketci web handler
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
hooks | File | - | No description provided |
async | Boolean | - | No description provided |
Example
dagger -m github.com/franela/pocketci/module@602729cb8cf92ea5040767b3f3c18153aafb8942 call \
serve --src DIR_PATH
func (m *myModule) example(src *Directory) *Service {
return dag.
Pocketci().
Serve(src)
}
@function
def example(src: dagger.Directory) -> dagger.Service:
return (
dag.pocketci()
.serve(src)
)
@func()
example(src: Directory): Service {
return dag
.pocketci()
.serve(src)
}