Documentation
¶
Index ¶
- Constants
- func CompanionImage(ctx context.Context) (*resources.DockerImage, error)
- func CreateBufConfiguration(ctx context.Context, bufDir string, service string, ...) error
- func GenerateGRPC(ctx context.Context, language languages.Language, destination string, ...) error
- func GenerateOpenAPI(ctx context.Context, language languages.Language, destination string, _ string, ...) error
- type Buf
- type GoConfiguration
- type Info
- type PythonConfiguration
- type RustConfiguration
- type TypeScriptConfiguration
Constants ¶
View Source
const InfoConfigurationName = "info.codefly.yaml"
Variables ¶
This section is empty.
Functions ¶
func CompanionImage ¶
func CompanionImage(ctx context.Context) (*resources.DockerImage, error)
func CreateBufConfiguration ¶
func GenerateGRPC ¶
func GenerateGRPC(ctx context.Context, language languages.Language, destination string, service string, endpoints ...*basev0.Endpoint) error
GenerateGRPC runs buf in a companion (Docker/Nix/local via golden wrapper) to generate gRPC client code for the given language and endpoints.
Types ¶
type Buf ¶ added in v0.1.83
type Buf struct {
Dir string
// contains filtered or unexported fields
}
func (*Buf) Generate ¶ added in v0.1.83
Generate runs buf in a companion (golden wrapper) to regenerate code from local proto files.
func (*Buf) WithGeneratedDirs ¶ added in v0.2.24
WithGeneratedDirs declares output directories that are wholly owned by Buf generation. Directories must be strict descendants of Dir; this invariant keeps regeneration cleanup scoped to the managed service.
type GoConfiguration ¶
type PythonConfiguration ¶ added in v0.1.139
type PythonConfiguration struct {
Destination string
}
type RustConfiguration ¶ added in v0.2.2
type RustConfiguration struct {
Destination string
}
type TypeScriptConfiguration ¶ added in v0.1.155
type TypeScriptConfiguration struct {
Destination string
}
Click to show internal directories.
Click to hide internal directories.