kroki
Get a container or service running Kroki to create diagrams from textual descriptions.Installation
dagger install github.com/camptocamp/daggerverse/kroki@v0.2.2
Entrypoint
Return Type
Kroki !
Example
dagger -m github.com/camptocamp/daggerverse/kroki@7ea97faf021ae0d2dfbe4c678855da016d6eafdf 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@7ea97faf021ae0d2dfbe4c678855da016d6eafdf 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@7ea97faf021ae0d2dfbe4c678855da016d6eafdf 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()
}