metadata

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 FSMetadataLoader

type FSMetadataLoader struct {
	// contains filtered or unexported fields
}

func (*FSMetadataLoader) Load

func (l *FSMetadataLoader) Load(providerType string) (*ProviderMetadata, error)

type FieldOption added in v0.16.0

type FieldOption struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type FieldSchema

type FieldSchema struct {
	Type        string        `json:"type"`
	Label       string        `json:"label"`
	Description string        `json:"description"`
	Key         string        `json:"key"`
	Required    bool          `json:"required"`
	Default     *string       `json:"default,omitempty"`
	Disabled    bool          `json:"disabled,omitempty"`
	Sensitive   bool          `json:"sensitive,omitempty"` // Whether the field value should be obfuscated in API responses
	Min         *int          `json:"min,omitempty"`       // Minimum value for numeric fields
	Max         *int          `json:"max,omitempty"`       // Maximum value for numeric fields
	Step        *int          `json:"step,omitempty"`      // Step value for numeric fields
	MinLength   *int          `json:"minlength,omitempty"` // Minimum length for text fields
	MaxLength   *int          `json:"maxlength,omitempty"` // Maximum length for text fields
	Pattern     *string       `json:"pattern,omitempty"`   // Regular expression pattern for text fields
	Options     []FieldOption `json:"options,omitempty"`   // Options for select fields
}

type MetadataLoader

type MetadataLoader interface {
	Load(providerType string) (*ProviderMetadata, error)
}

MetadataLoader loads provider metadata

func NewMetadataLoader

func NewMetadataLoader(basePath string) MetadataLoader

type ProviderMetadata

type ProviderMetadata struct {
	Type             string        `json:"type"`
	ConfigFields     []FieldSchema `json:"config_fields"`
	CredentialFields []FieldSchema `json:"credential_fields"`
	Label            string        `json:"label"`
	Description      string        `json:"description"`
	Icon             string        `json:"icon"`
	SetupLink        *SetupLink    `json:"setup_link,omitempty"`
	Instructions     string        `json:"instructions"`
}
type SetupLink struct {
	Href string `json:"href"`
	Cta  string `json:"cta"`
}

Jump to

Keyboard shortcuts

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