Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidSchema = errors.New("invalid schema")
Functions ¶
func GenerateTools ¶
func GenerateTools(ctx context.Context, schema *proto.Schema, config *config.ProjectConfig) ([]*toolsproto.ActionConfig, error)
GenerateTools will return a map of tool configurations generated for the given schema
Types ¶
type Generator ¶
type Generator struct { Schema *proto.Schema KeelConfig *config.ProjectConfig Tools map[string]*Tool }
func NewGenerator ¶
NewGenerator creates a new tool config generator for the given schema
func (*Generator) GetConfigs ¶
func (g *Generator) GetConfigs() []*toolsproto.ActionConfig
GetConfigs will return the action configs that have been generated, in alphabetical order
type Tool ¶
type Tool struct { Config *toolsproto.ActionConfig Model *proto.Model Action *proto.Action SortableFields []string }
Click to show internal directories.
Click to hide internal directories.