code

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyCodeIntegrationVersion = fmt.Errorf("CodeIntegration is empty")

Functions

func AskForCodeIntegration

func AskForCodeIntegration(ctx context.Context) (*tensorleapapi.Dataset, error)

func AskForCodeIntegrationName

func AskForCodeIntegrationName() (name string, err error)

func CloneCodeIntegrationVersion

func CloneCodeIntegrationVersion(ctx context.Context, codeIntegrationVersion *tensorleapapi.DatasetVersion, outputDir string) ([]string, error)

func CreateCodeTemplate

func CreateCodeTemplate(datasetId string, outputDir string) error

func CreateNewCodeIntegration

func CreateNewCodeIntegration(ctx context.Context, name string) (*tensorleapapi.Dataset, error)

func GetCodeIntegrationById

func GetCodeIntegrationById(ctx context.Context, datasetId string) (*tensorleapapi.Dataset, error)

func GetLatestVersion

func GetLatestVersion(ctx context.Context, codeIntegrationId string) (*tensorleapapi.DatasetVersion, error)

func SetCodeIntegrationConfig

func SetCodeIntegrationConfig(datasetConfig *DatasetConfig, outputDir string) error

Types

type DatasetConfig

type DatasetConfig struct {
	DatasetId       string   `yaml:"datasetId"`
	SecretManagerId string   `yaml:"secretManagerId"`
	EntryFile       string   `yaml:"entryFile"`
	IncludePatterns []string `yaml:"include"`
}

func GetCodeIntegrationConfig

func GetCodeIntegrationConfig() (*DatasetConfig, error)

func NewDatasetConfig

func NewDatasetConfig(datasetId string, entryFile string, files []string) *DatasetConfig

type InitTemplateValues

type InitTemplateValues struct {
	DatasetId string
}

Jump to

Keyboard shortcuts

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