Documentation ¶
Index ¶
- Variables
- func NewCollector(customImports, commonImports []string) *collector
- func NewProtoCompiler(collector Collector, executor ProtocExecutor) *protoCompiler
- type Collector
- type DefaultProtocExecutor
- type ImportsExtractor
- type ImportsFetcher
- type OpenApiProtocExecutor
- type ProtoCompiler
- type ProtocExecutor
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FetchImportsTimeout = func(filename string) error { return eris.Errorf("Timed out while fetching imports for proto file: [%s]", filename) } )
Functions ¶
func NewCollector ¶
func NewCollector(customImports, commonImports []string) *collector
func NewProtoCompiler ¶ added in v0.18.5
func NewProtoCompiler(collector Collector, executor ProtocExecutor) *protoCompiler
Types ¶
type DefaultProtocExecutor ¶ added in v0.19.0
type DefaultProtocExecutor struct { // The output directory OutputDir string // whether or not to do a regular go-proto generate while collecting descriptors ShouldCompileFile func(string) bool // arguments for go_out= CustomGoArgs []string // custom plugins // each will append a <plugin>_out= directive to protoc command CustomPlugins []string }
type ImportsExtractor ¶ added in v0.18.5
type ImportsExtractor interface {
FetchImportsForFile(protoFile string, importsFetcher ImportsFetcher) ([]string, error)
}
func NewSynchronizedImportsExtractor ¶ added in v0.18.5
func NewSynchronizedImportsExtractor() ImportsExtractor
type ImportsFetcher ¶ added in v0.18.5
type OpenApiProtocExecutor ¶ added in v0.19.0
type OpenApiProtocExecutor struct { OutputDir string // Whether to include descriptions in validation schemas IncludeDescriptionsInSchema bool // Whether to assign Enum fields the `x-kubernetes-int-or-string` property // which allows the value to either be an integer or a string EnumAsIntOrString bool // A list of messages (core.solo.io.Status) whose validation schema should // not be generated MessagesWithEmptySchema []string // Whether to exclude kubebuilder markers and validations (such as PreserveUnknownFields, MinItems, default, and all CEL rules) // Type and Required markers will be included regardless DisableKubeMarkers bool }
type ProtoCompiler ¶ added in v0.18.5
type ProtoCompiler interface {
CompileDescriptorsFromRoot(root string, skipDirs []string) ([]*model.DescriptorWithPath, error)
}
Click to show internal directories.
Click to hide internal directories.