Documentation ¶
Index ¶
- Variables
- func AskForCodeIntegration(ctx context.Context) (*tensorleapapi.Dataset, error)
- func AskForCodeIntegrationName() (name string, err error)
- func CloneCodeIntegrationVersion(ctx context.Context, codeIntegrationVersion *tensorleapapi.DatasetVersion, ...) ([]string, error)
- func CreateCodeTemplate(datasetId string, outputDir string) error
- func CreateNewCodeIntegration(ctx context.Context, name string) (*tensorleapapi.Dataset, error)
- func GetCodeIntegrationById(ctx context.Context, datasetId string) (*tensorleapapi.Dataset, error)
- func GetLatestVersion(ctx context.Context, codeIntegrationId string) (*tensorleapapi.DatasetVersion, error)
- func SetCodeIntegrationConfig(datasetConfig *DatasetConfig, outputDir string) error
- type DatasetConfig
- type InitTemplateValues
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 CloneCodeIntegrationVersion ¶
func CloneCodeIntegrationVersion(ctx context.Context, codeIntegrationVersion *tensorleapapi.DatasetVersion, outputDir string) ([]string, error)
func CreateCodeTemplate ¶
func GetCodeIntegrationById ¶
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
}
Click to show internal directories.
Click to hide internal directories.