Documentation
¶
Index ¶
- type File
- type Generator
- type Option
- func Buildkit(s bool) Option
- func Client(c bool) Option
- func Directory(d string) Option
- func GRPC(s bool) Option
- func Health(s bool) Option
- func Kustomize(s bool) Option
- func Namespace(s string) Option
- func PostgresAddress(s string) Option
- func PrivateRepo(s bool) Option
- func Service(s string) Option
- func Skaffold(s bool) Option
- func Sqlc(s bool) Option
- func Tern(s bool) Option
- func Tilt(s bool) Option
- func Trace(t bool) Option
- func Vendor(v string) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// Path specifies where the file will reside.
Path string
// Template is the template used to generate the file.
Template string
}
File represents a file to generate.
type Generator ¶
Generator is the interface that generates project template files.
Generate accepts a list of files and generates them based on their template.
type Option ¶
type Option func(o *Options)
Option manipulates the Options passed.
type Options ¶
type Options struct {
// Service is the name of the service the generator will generate files
// for.
Service string
// Vendor is the service vendor.
Vendor string
// Directory is the directory where the files will be generated to.
Directory string
// Client determines whether or not the project is a client project.
Client bool
// Trace determines whether or not Trace integration is enabled.
Trace bool
// Skaffold determines whether or not Skaffold integration is enabled.
Skaffold bool
// Tilt determines whether or not Tilt integration is enabled.
Tilt bool
// Health determines whether or not health proto service is enabled.
Health bool
// Kustomize determines whether or not Kustomize integration is enabled.
Kustomize bool
// Sqlc determines whether or not Sqlc integration is enabled.
Sqlc bool
// GRPC determines whether or not GRPC integration is enabled.
GRPC bool
// Buildkit determines whether or not Buildkit integration is enabled.
Buildkit bool
// Tern directory whether or not Tern integration is enabled.
Tern bool
// PrivateRepo
PrivateRepo bool
// Namespace sets the default namespace
Namespace string
// PostgresAddress sets the default postgres address
PostgresAddress string
}
Options represents the options for the generator.
Click to show internal directories.
Click to hide internal directories.