Documentation
¶
Overview ¶
internal/destregistry/metadata/types.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldSchema ¶
type MetadataLoader ¶
type MetadataLoader struct {
// contains filtered or unexported fields
}
func NewMetadataLoader ¶
func NewMetadataLoader(basePath string) *MetadataLoader
func (*MetadataLoader) Load ¶
func (l *MetadataLoader) Load(providerType string) (*ProviderMetadata, error)
type ProviderMetadata ¶
type ProviderMetadata struct {
// From core.json
Type string `json:"type"`
ConfigFields []FieldSchema `json:"config_fields"`
CredentialFields []FieldSchema `json:"credential_fields"`
// From ui.json
Label string `json:"label"`
Description string `json:"description"`
Icon string `json:"icon"`
RemoteSetupURL string `json:"remote_setup_url,omitempty"`
// From instructions.md
Instructions string `json:"instructions"`
// From validation.json
ValidationSchema map[string]interface{} `json:"validation"` // Raw JSON schema
Validation *jsonschema.Schema `json:"-"` // Compiled schema for internal use
}
Click to show internal directories.
Click to hide internal directories.