kubecon-2024-na
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6
Entrypoint
Return Type
Kubecon2024Na
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
func (m *myModule) example() *Kubecon2024Na {
return dag.
Kubecon2024Na()
}
@function
def example() -> dag.Kubecon2024Na:
return (
dag.kubecon_2024_na()
)
@func()
example(): Kubecon2024Na {
return dag
.kubecon2024Na()
}
Types
Kubecon2024Na 🔗
producer() 🔗
producer app operations
Return Type
Kubecon2024NaProducer !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
daprComponents | Directory | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
producer
func (m *myModule) example() *Kubecon2024NaProducer {
return dag.
Kubecon2024Na().
Producer()
}
@function
def example() -> dag.Kubecon2024NaProducer:
return (
dag.kubecon_2024_na()
.producer()
)
@func()
example(): Kubecon2024NaProducer {
return dag
.kubecon2024Na()
.producer()
}
consumer() 🔗
consumer app operations
Return Type
Kubecon2024NaConsumer !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
daprComponents | Directory | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
consumer
func (m *myModule) example() *Kubecon2024NaConsumer {
return dag.
Kubecon2024Na().
Consumer()
}
@function
def example() -> dag.Kubecon2024NaConsumer:
return (
dag.kubecon_2024_na()
.consumer()
)
@func()
example(): Kubecon2024NaConsumer {
return dag
.kubecon2024Na()
.consumer()
}
app() 🔗
Starts both consumer and producer services
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
app
func (m *myModule) example() *Service {
return dag.
Kubecon2024Na().
App()
}
@function
def example() -> dagger.Service:
return (
dag.kubecon_2024_na()
.app()
)
@func()
example(): Service {
return dag
.kubecon2024Na()
.app()
}
kube() 🔗
Kubernetes operations
Return Type
Kubecon2024NaKube !
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
kube
func (m *myModule) example() *Kubecon2024NaKube {
return dag.
Kubecon2024Na().
Kube()
}
@function
def example() -> dag.Kubecon2024NaKube:
return (
dag.kubecon_2024_na()
.kube()
)
@func()
example(): Kubecon2024NaKube {
return dag
.kubecon2024Na()
.kube()
}
Kubecon2024NaProducer 🔗
build() 🔗
Return Type
File !
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
producer \
build
func (m *myModule) example() *File {
return dag.
Kubecon2024Na().
Producer().
Build()
}
@function
def example() -> dagger.File:
return (
dag.kubecon_2024_na()
.producer()
.build()
)
@func()
example(): File {
return dag
.kubecon2024Na()
.producer()
.build()
}
test() 🔗
Return Type
Service !
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
producer \
test
func (m *myModule) example() *Service {
return dag.
Kubecon2024Na().
Producer().
Test()
}
@function
def example() -> dagger.Service:
return (
dag.kubecon_2024_na()
.producer()
.test()
)
@func()
example(): Service {
return dag
.kubecon2024Na()
.producer()
.test()
}
container() 🔗
Return Type
Container !
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
producer \
container
func (m *myModule) example() *Container {
return dag.
Kubecon2024Na().
Producer().
Container()
}
@function
def example() -> dagger.Container:
return (
dag.kubecon_2024_na()
.producer()
.container()
)
@func()
example(): Container {
return dag
.kubecon2024Na()
.producer()
.container()
}
service() 🔗
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
rabbit | Service | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
producer \
service
func (m *myModule) example() *Service {
return dag.
Kubecon2024Na().
Producer().
Service()
}
@function
def example() -> dagger.Service:
return (
dag.kubecon_2024_na()
.producer()
.service()
)
@func()
example(): Service {
return dag
.kubecon2024Na()
.producer()
.service()
}
Kubecon2024NaConsumer 🔗
build() 🔗
Return Type
File !
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
consumer \
build
func (m *myModule) example() *File {
return dag.
Kubecon2024Na().
Consumer().
Build()
}
@function
def example() -> dagger.File:
return (
dag.kubecon_2024_na()
.consumer()
.build()
)
@func()
example(): File {
return dag
.kubecon2024Na()
.consumer()
.build()
}
container() 🔗
Return Type
Container !
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
consumer \
container
func (m *myModule) example() *Container {
return dag.
Kubecon2024Na().
Consumer().
Container()
}
@function
def example() -> dagger.Container:
return (
dag.kubecon_2024_na()
.consumer()
.container()
)
@func()
example(): Container {
return dag
.kubecon2024Na()
.consumer()
.container()
}
test() 🔗
Return Type
Service !
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
consumer \
test
func (m *myModule) example() *Service {
return dag.
Kubecon2024Na().
Consumer().
Test()
}
@function
def example() -> dagger.Service:
return (
dag.kubecon_2024_na()
.consumer()
.test()
)
@func()
example(): Service {
return dag
.kubecon2024Na()
.consumer()
.test()
}
service() 🔗
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
rabbit | Service | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
consumer \
service
func (m *myModule) example() *Service {
return dag.
Kubecon2024Na().
Consumer().
Service()
}
@function
def example() -> dagger.Service:
return (
dag.kubecon_2024_na()
.consumer()
.service()
)
@func()
example(): Service {
return dag
.kubecon2024Na()
.consumer()
.service()
}
Kubecon2024NaKube 🔗
service() 🔗
a kubernetes service with all the applications deployed
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
manifests | Directory | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
kube \
service
func (m *myModule) example() *Service {
return dag.
Kubecon2024Na().
Kube().
Service()
}
@function
def example() -> dagger.Service:
return (
dag.kubecon_2024_na()
.kube()
.service()
)
@func()
example(): Service {
return dag
.kubecon2024Na()
.kube()
.service()
}
deploy() 🔗
deploys the apps to the target k8s cluster
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
kubeCfg | File ! | - | No description provided |
contextName | String | - | No description provided |
manifests | Directory | - | No description provided |
gcloudConfig | Directory | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
kube \
deploy --kube-cfg file:path
func (m *myModule) example(ctx context.Context, kubeCfg *File) {
return dag.
Kubecon2024Na().
Kube().
Deploy(ctx, kubeCfg)
}
@function
async def example(kube_cfg: dagger.File) -> None:
return await (
dag.kubecon_2024_na()
.kube()
.deploy(kube_cfg)
)
@func()
async example(kubeCfg: File): Promise<void> {
return dag
.kubecon2024Na()
.kube()
.deploy(kubeCfg)
}
config() 🔗
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
local | Boolean ! | "false" | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
kube \
config --local boolean
func (m *myModule) example(local bool) *File {
return dag.
Kubecon2024Na().
Kube().
Config(local)
}
@function
def example(local: bool) -> dagger.File:
return (
dag.kubecon_2024_na()
.kube()
.config(local)
)
@func()
example(local: boolean): File {
return dag
.kubecon2024Na()
.kube()
.config(local)
}
kubectl() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
args | String | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
kube \
kubectl
func (m *myModule) example() *Container {
return dag.
Kubecon2024Na().
Kube().
Kubectl()
}
@function
def example() -> dagger.Container:
return (
dag.kubecon_2024_na()
.kube()
.kubectl()
)
@func()
example(): Container {
return dag
.kubecon2024Na()
.kube()
.kubectl()
}
kns() 🔗
Return Type
Container !
Example
dagger -m github.com/salaboy/kubecon-2024-na@a9c8b4ec267048991b335144263fd878535fedc6 call \
kube \
kns
func (m *myModule) example() *Container {
return dag.
Kubecon2024Na().
Kube().
Kns()
}
@function
def example() -> dagger.Container:
return (
dag.kubecon_2024_na()
.kube()
.kns()
)
@func()
example(): Container {
return dag
.kubecon2024Na()
.kube()
.kns()
}