Documentation
¶
Index ¶
- func Build(ctx context.Context, id string, projectConfig *config.ProjectConfig) error
- func CheckSDKVersion(dir string, projectType ProjectType, settingsMap map[string]string) error
- func CreateDockerfile(dir string, projectType ProjectType, settingsMap map[string]string) error
- func DetectEnvFile(maybeFile string) (string, map[string]string, error)
- func HasDockerfile(dir string) (bool, error)
- func LocateLockfile(dir string, p ProjectType) (bool, string)
- func LogHelper(ctx context.Context, id string, logType string, ...) error
- func ParseCpu(cpu string) (string, error)
- func ParseEnvFile(file string) (map[string]string, error)
- func ParseMem(mem string, suffix bool) (string, error)
- func UploadTarball(directory string, presignedUrl string, excludeFiles []string) error
- type APIError
- type PackageInfo
- type ProjectType
- type VersionCheckResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSDKVersion ¶ added in v2.5.0
func CheckSDKVersion(dir string, projectType ProjectType, settingsMap map[string]string) error
CheckSDKVersion performs a comprehensive check for livekit-agents packages
func CreateDockerfile ¶
func CreateDockerfile(dir string, projectType ProjectType, settingsMap map[string]string) error
func DetectEnvFile ¶ added in v2.4.5
func HasDockerfile ¶ added in v2.4.5
func LocateLockfile ¶ added in v2.5.0
func LocateLockfile(dir string, p ProjectType) (bool, string)
Types ¶
type PackageInfo ¶ added in v2.5.0
type PackageInfo struct {
Name string
Version string
FoundInFile string
ProjectType ProjectType
Ecosystem string // "pypi" or "npm"
}
PackageInfo represents information about a package found in a project
type ProjectType ¶ added in v2.5.0
type ProjectType string
const ( ProjectTypePythonPip ProjectType = "python.pip" ProjectTypePythonUV ProjectType = "python.uv" ProjectTypeNode ProjectType = "node" ProjectTypeUnknown ProjectType = "unknown" )
func DetectProjectType ¶ added in v2.5.0
func DetectProjectType(dir string) (ProjectType, error)
func (ProjectType) FileExt ¶ added in v2.5.0
func (p ProjectType) FileExt() string
func (ProjectType) IsNode ¶ added in v2.5.0
func (p ProjectType) IsNode() bool
func (ProjectType) IsPython ¶ added in v2.5.0
func (p ProjectType) IsPython() bool
func (ProjectType) Lang ¶ added in v2.5.0
func (p ProjectType) Lang() string
type VersionCheckResult ¶ added in v2.5.0
type VersionCheckResult struct {
PackageInfo
MinVersion string
Satisfied bool
Error error
}
VersionCheckResult represents the result of a version check
Click to show internal directories.
Click to hide internal directories.