Documentation ¶
Index ¶
- type LuaValidator
- func (v *LuaValidator) GetAvailablePluginNames(ctx context.Context) []string
- func (v *LuaValidator) GetRawLuaSchema(ctx context.Context, name string) ([]byte, error)
- func (v *LuaValidator) LoadPatch(pgkName string) error
- func (v *LuaValidator) LoadSchemasFromEmbed(fs embed.FS, dirName string) error
- func (v *LuaValidator) ProcessDefaults(ctx context.Context, plugin *grpcModel.Plugin) error
- func (v *LuaValidator) SetStoreLoader(storeLoader util.StoreLoader)
- func (v *LuaValidator) Validate(ctx context.Context, plugin *grpcModel.Plugin) error
- func (v *LuaValidator) ValidateSchema(ctx context.Context, pluginSchema string) (string, error)
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LuaValidator ¶
type LuaValidator struct {
// contains filtered or unexported fields
}
func NewLuaValidator ¶
func NewLuaValidator(opts Opts) (*LuaValidator, error)
func (*LuaValidator) GetAvailablePluginNames ¶
func (v *LuaValidator) GetAvailablePluginNames(ctx context.Context) []string
GetAvailablePluginNames implements the Validator.GetAvailablePluginNames interface.
func (*LuaValidator) GetRawLuaSchema ¶
GetRawLuaSchema implements the Validator.GetRawLuaSchema interface.
func (*LuaValidator) LoadPatch ¶
func (v *LuaValidator) LoadPatch(pgkName string) error
func (*LuaValidator) LoadSchemasFromEmbed ¶
func (v *LuaValidator) LoadSchemasFromEmbed(fs embed.FS, dirName string) error
func (*LuaValidator) ProcessDefaults ¶
ProcessDefaults implements the Validator.ProcessDefaults interface.
func (*LuaValidator) SetStoreLoader ¶
func (v *LuaValidator) SetStoreLoader(storeLoader util.StoreLoader)
func (*LuaValidator) ValidateSchema ¶
Click to show internal directories.
Click to hide internal directories.