copier

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ComponentDetailsByURL       = map[string]Details{}
	ComponentDetailsByShortName = map[string]Details{}
)

Map the repo listed in an "answer file" to relevant info for component To Note: Not all of the README contents have been added

View Source
var ComponentDetails = []Details{
	{

		Name:      "Agent",
		ShortName: "agent",
		RepoURL:   "git@github.com:datarobot/af-component-agent.git",
		Enabled:   true,
		// contains filtered or unexported fields
	},
	{

		Name:      "Base",
		ShortName: "Base",
		RepoURL:   "git@github.com:datarobot/af-component-base.git",
		// contains filtered or unexported fields
	},
	{

		Name:      "FastAPI backend",
		ShortName: "fastapi",
		RepoURL:   "git@github.com:datarobot/af-component-fastapi-backend.git",
		// contains filtered or unexported fields
	},
	{

		Name:      "FastMCP backend",
		ShortName: "fastmcp",
		RepoURL:   "git@github.com:datarobot/af-component-fastmcp-backend.git",
		// contains filtered or unexported fields
	},
	{

		Name:      "LLM",
		ShortName: "llm",
		RepoURL:   "git@github.com:datarobot/af-component-llm.git",
		// contains filtered or unexported fields
	},
	{

		Name:      "React",
		ShortName: "react",
		RepoURL:   "git@github.com:datarobot/af-component-react.git",
		// contains filtered or unexported fields
	},
}

Functions

func Add added in v0.2.5

func Add(repoURL string) *exec.Cmd

func ExecAdd

func ExecAdd(repoURL string) error

func ExecUpdate

func ExecUpdate(yamlFile string) error

func Update added in v0.2.5

func Update(yamlFile string) *exec.Cmd

Types

type Answers

type Answers struct {
	FileName string
	Repo     string `yaml:"_src_path"`
}

func AnswersFromPath

func AnswersFromPath(path string) ([]Answers, error)

type Component added in v0.2.3

type Component struct {
	FileName string
	SrcPath  string `yaml:"_src_path"`
}

TODO: Add more properties to account for what we need to determine as canonical values expected for components

func ComponentsFromAnswers added in v0.2.3

func ComponentsFromAnswers(answers []Answers) ([]Component, error)

type Details added in v0.2.4

type Details struct {
	ReadMeContents string

	Name      string
	ShortName string
	RepoURL   string
	Enabled   bool
	// contains filtered or unexported fields
}

TODO: I don't know what we should add here

Jump to

Keyboard shortcuts

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