bufschema

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 13 Imported by: 0

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 (*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) Close

func (p *Provider) Close() error

func (*Provider) LoadSchemas

func (p *Provider) LoadSchemas(ctx context.Context) ([]adapters.SchemaDefinition, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL