Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Module string `json:"module" yaml:"module"`
Ref string `json:"ref" yaml:"ref"`
Dir string `json:"dir" yaml:"dir"`
ExportDir string `json:"export_dir" yaml:"export_dir"`
SchemaDir string `json:"schema_dir" yaml:"schema_dir"`
SchemaFiles []string `json:"schema_files" yaml:"schema_files"`
IncludePkgs []string `json:"include_packages" yaml:"include_packages"`
ExcludePkgs []string `json:"exclude_packages" yaml:"exclude_packages"`
SchemaName string `json:"schema_name" yaml:"schema_name"`
SchemaVersion string `json:"schema_version" yaml:"schema_version"`
}
Config controls Buf schema loading.
type Factory ¶
type Factory struct{}
Factory creates Buf schema providers.
func (*Factory) Create ¶
func (f *Factory) Create(config adapters.SchemaSourceConfig) (adapters.SchemaProvider, error)
func (*Factory) GetConfigSchema ¶
func (f *Factory) GetConfigSchema() adapters.ConfigSchema
func (*Factory) ValidateConfig ¶
func (f *Factory) ValidateConfig(config adapters.SchemaSourceConfig) error
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider loads schemas from a Buf registry or local module.
func (*Provider) LoadSchemas ¶
Click to show internal directories.
Click to hide internal directories.