kroki
Get a container or service running Kroki to create diagrams from textual descriptions.Installation
dagger install github.com/camptocamp/daggerverse/kroki@v0.2.3
Entrypoint
Return Type
Kroki !
Example
dagger -m github.com/camptocamp/daggerverse/kroki@e8c96e07fcb0c42d0e380d3f6867596e47055d04 call \
func (m *myModule) example() *Kroki {
return dag.
Kroki()
}
@function
def example() -> dag.Kroki:
return (
dag.kroki()
)
@func()
example(): Kroki {
return dag
.kroki()
}
Types
Kroki 🔗
Kroki
container() 🔗
Get a Kroki container ready to create diagrams
Container exposes port 8080.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/kroki@e8c96e07fcb0c42d0e380d3f6867596e47055d04 call \
container
func (m *myModule) example() *Container {
return dag.
Kroki().
Container()
}
@function
def example() -> dagger.Container:
return (
dag.kroki()
.container()
)
@func()
example(): Container {
return dag
.kroki()
.container()
}
server() 🔗
Get a Kroki service creating diagrams
See container()
for details.
Return Type
Service !
Example
dagger -m github.com/camptocamp/daggerverse/kroki@e8c96e07fcb0c42d0e380d3f6867596e47055d04 call \
server
func (m *myModule) example() *Service {
return dag.
Kroki().
Server()
}
@function
def example() -> dagger.Service:
return (
dag.kroki()
.server()
)
@func()
example(): Service {
return dag
.kroki()
.server()
}