kcp
Runs a kcp server than can be accessed both locally and in your pipelines
Installation
dagger install github.com/orvis98/daggerverse/kcp@5d6cb57d099007be818d17bc08685a2e9387c198
Entrypoint
Return Type
Kcp !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String | "default" | The name of this module instance (used for naming cache volumes). |
image | String | "ghcr.io/kcp-dev/kcp:v0.28.1" | The kcp server container image. |
Example
dagger -m github.com/orvis98/daggerverse/kcp@5d6cb57d099007be818d17bc08685a2e9387c198 call \
func (m *MyModule) Example() *dagger.Kcp {
return dag.
Kcp()
}
@function
def example() -> dagger.Kcp:
return (
dag.kcp()
)
@func()
example(): Kcp {
return dag
.kcp()
}
Types
Kcp 🔗
container() 🔗
Returns the kcp server container.
Return Type
Container !
Example
dagger -m github.com/orvis98/daggerverse/kcp@5d6cb57d099007be818d17bc08685a2e9387c198 call \
container
func (m *MyModule) Example() *dagger.Container {
return dag.
Kcp().
Container()
}
@function
def example() -> dagger.Container:
return (
dag.kcp()
.container()
)
@func()
example(): Container {
return dag
.kcp()
.container()
}
server() 🔗
Returns the kcp server container as a service.
Return Type
Service !
Example
dagger -m github.com/orvis98/daggerverse/kcp@5d6cb57d099007be818d17bc08685a2e9387c198 call \
server
func (m *MyModule) Example() *dagger.Service {
return dag.
Kcp().
Server()
}
@function
def example() -> dagger.Service:
return (
dag.kcp()
.server()
)
@func()
example(): Service {
return dag
.kcp()
.server()
}
config() 🔗
Returns the kcp server admin kubeconfig as a file.
Return Type
File !
Example
dagger -m github.com/orvis98/daggerverse/kcp@5d6cb57d099007be818d17bc08685a2e9387c198 call \
config
func (m *MyModule) Example() *dagger.File {
return dag.
Kcp().
Config()
}
@function
def example() -> dagger.File:
return (
dag.kcp()
.config()
)
@func()
example(): File {
return dag
.kcp()
.config()
}