Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConfigFileName = "ingestkit.config.json" SchemaDir = "ingestkit" SchemaFileName = "schema.yaml" )
Variables ¶
This section is empty.
Functions ¶
func DetectLanguage ¶
func DetectLanguage() string
DetectLanguage tries to detect the project language from context
func FindConfig ¶
FindConfig searches for config file in current and parent directories
func SaveConfig ¶
SaveConfig writes the config file to the current directory
Types ¶
type Config ¶
type Config struct {
Version string `json:"version"`
APIURL string `json:"apiUrl"`
APIKey string `json:"apiKey"`
TenantID string `json:"tenantId"`
Generator GeneratorConfig `json:"generator"`
}
Config represents the IngestKit configuration file
func DefaultConfig ¶
DefaultConfig returns a new config with sensible defaults
func LoadConfig ¶
LoadConfig reads the config file from the current directory
type GeneratorConfig ¶
type GeneratorConfig struct {
Language string `json:"language"` // python, typescript, go
Output string `json:"output"` // ./ingestkit
}
GeneratorConfig holds SDK generation settings
Click to show internal directories.
Click to hide internal directories.