Documentation
¶
Index ¶
- Constants
- Variables
- func BindBrokers(brokers map[string]*dagger.Service) func(r *dagger.Container) *dagger.Container
- func BrokerKafka(client *dagger.Client) *dagger.Service
- func BrokerKafkaSecure(client *dagger.Client) *dagger.Service
- func BrokerKafkaSecureBasicAuth(client *dagger.Client) *dagger.Service
- func BrokerNATS(client *dagger.Client) *dagger.Service
- func BrokerNATSJetstream(client *dagger.Client) *dagger.Service
- func BrokerNATSJetstreamSecure(client *dagger.Client) *dagger.Service
- func BrokerNATSJetstreamSecureBasicAuth(client *dagger.Client) *dagger.Service
- func BrokerNATSSecure(client *dagger.Client) *dagger.Service
- func BrokerNATSSecureBasicAuth(client *dagger.Client) *dagger.Service
- func Brokers(client *dagger.Client) map[string]*dagger.Service
- func Examples(client *dagger.Client, brokers map[string]*dagger.Service) map[string]*dagger.Container
- func Generator(client *dagger.Client) func(ctx context.Context) error
- func Linter(client *dagger.Client) *dagger.Container
- func Publish(ctx context.Context, client *dagger.Client, tag string) error
- func RunnerFromDockerfile(client *dagger.Client, rt RunnerType) *dagger.Container
- func Tests(client *dagger.Client, brokers map[string]*dagger.Service, path string) *dagger.Container
- type RunnerType
Constants ¶
const ( // KafkaImage is the image used for kafka. KafkaImage = "bitnami/kafka:3.5.1" // GolangImage is the image used for golang execution. GolangImage = "golang:1.21.4" // LinterImage is the image used for linter. LinterImage = "golangci/golangci-lint:v1.55" // NATSImage is the image used for NATS. NATSImage = "nats:2.10" )
const (
// DockerImageName is the name of the docker image.
DockerImageName = "lerenn/asyncapi-codegen"
)
Variables ¶
var ( // DefaultRunnerType is the default runner type to use in case of doubt. DefaultRunnerType = RunnerType{ OS: "linux", Arch: "amd64", BuildBaseImage: "golang:alpine", TargetBaseImage: "alpine", } )
Functions ¶
func BindBrokers ¶
BindBrokers is used as a helper to bind brokers to a container.
func BrokerKafka ¶
BrokerKafka returns a service for the Kafka broker.
func BrokerKafkaSecure ¶ added in v0.36.0
BrokerKafkaSecure returns a service for the Kafka broker secured with TLS.
func BrokerKafkaSecureBasicAuth ¶ added in v0.36.0
BrokerKafkaSecureBasicAuth returns a service for the Kafka broker secured with TLS and basic auth.
func BrokerNATS ¶
BrokerNATS returns a service for the NATS broker.
func BrokerNATSJetstream ¶
BrokerNATSJetstream returns a service for the NATS broker.
func BrokerNATSJetstreamSecure ¶ added in v0.36.0
BrokerNATSJetstreamSecure returns a service for the NATS broker secured with TLS.
func BrokerNATSJetstreamSecureBasicAuth ¶ added in v0.36.0
BrokerNATSJetstreamSecureBasicAuth returns a service for the NATS broker secured with TLS and basic auth user: user password: password.
func BrokerNATSSecure ¶ added in v0.36.0
BrokerNATSSecure returns a service for the NATS broker secured with TLS.
func BrokerNATSSecureBasicAuth ¶ added in v0.36.0
BrokerNATSSecureBasicAuth returns a service for the NATS broker secured with TLS and basic auth user: user password: password.
func Examples ¶
func Examples(client *dagger.Client, brokers map[string]*dagger.Service) map[string]*dagger.Container
Examples returns a container that runs all examples.
func Publish ¶
Publish should publish tag on git repository and docker image(s) on Docker Hub Note: if this is not 'main' branch, then it will just push docker image with git tag.
func RunnerFromDockerfile ¶
func RunnerFromDockerfile(client *dagger.Client, rt RunnerType) *dagger.Container
RunnerFromDockerfile returns a dagger container based on the repository Dockerfile.