Documentation
¶
Index ¶
- Constants
- func LoadCatalog(ctx context.Context, fixturePath string) (ir.Catalog, error)
- func LoadCatalogWithSource(ctx context.Context, source string, catalogPath string) (ir.Catalog, error)
- func WriteArtifacts(root string, artifacts []Artifact) error
- type Artifact
- type CatalogSource
- type PersonaEntry
- type PersonaRegistry
- type RecipeEntry
- type RecipeRegistry
Constants ¶
View Source
const ( PersonaRegistryPathEnv = "DWS_SKILLS_PERSONAS_FILE" RecipeRegistryPathEnv = "DWS_SKILLS_RECIPES_FILE" )
Variables ¶
This section is empty.
Functions ¶
func LoadCatalogWithSource ¶
func WriteArtifacts ¶
Types ¶
type CatalogSource ¶
type CatalogSource string
const ( CatalogSourceFixture CatalogSource = "fixture" CatalogSourceEnv CatalogSource = "env" CatalogSourceSnapshot CatalogSource = "snapshot" )
type PersonaEntry ¶
type PersonaEntry struct {
Name string `yaml:"name"`
Title string `yaml:"title"`
Description string `yaml:"description"`
Services []string `yaml:"services"`
Products []string `yaml:"products,omitempty"` // Backward-compatible alias of services.
Workflows []string `yaml:"workflows"`
Instructions []string `yaml:"instructions"`
Tips []string `yaml:"tips"`
}
type PersonaRegistry ¶
type PersonaRegistry struct {
Personas []PersonaEntry `yaml:"personas"`
}
type RecipeEntry ¶
type RecipeEntry struct {
Name string `yaml:"name"`
Title string `yaml:"title"`
Description string `yaml:"description"`
Category string `yaml:"category"`
Services []string `yaml:"services"`
Products []string `yaml:"products,omitempty"` // Backward-compatible alias of services.
Steps []string `yaml:"steps"`
Caution string `yaml:"caution"`
}
type RecipeRegistry ¶
type RecipeRegistry struct {
Recipes []RecipeEntry `yaml:"recipes"`
}
Click to show internal directories.
Click to hide internal directories.