Versions in this module Expand all Collapse all v0 v0.47.4 Apr 21, 2026 v0.47.3 Apr 10, 2026 Changes in this version + const ServiceControllerURN + const ServiceDefaultPolicy + const ServiceMainScriptName + const ServiceSchema + const SimpleToolFileName + const ToolFileName + const UploadMetaPrefix + func DrainTar(r io.Reader) ([]string, error) + func ExtractFileFromTarBytes(archive []byte, fileName string) ([]byte, string, error) + func ExtractFileFromTarPath(archivePath string, fileName string) (content []byte, foundPath string, err error) + func ExtractFileFromTarReader(tr *tar.Reader, targetName string) (content []byte, foundPath string, err error) + func ExtractFromTarAuto(data []byte, innerPath string) ([]byte, string, error) + func GuessArchiveContentType(p string) string + func ReadUploadMeta(archivePath string, size int64, mtimeUnix int64) (artifactID string, ok bool) + func SanitizeTarPath(p string) (string, error) + func TarGzFromSources(ctx context.Context, sources []Source, adpt *a.Adapter, logger *log.Logger, ...) ([]byte, string, error) + func UploadArchiveAsArtifact(ctxt context.Context, toolName string, archivePath string, chunkSize int64, ...) (artifactID string, err error) + func UploadMetaPath(archivePath string) string + func UpsertServiceDescriptionAspect(ctxt context.Context, entityServiceID string, svc *ServiceDescription, ...) (aspectID string, err error) + func ValidateFnSchema(m map[string]any) error + func WriteUploadMeta(archivePath string, size int64, mtimeUnix int64, artifactID string) + type CreateOutput struct + OK bool + PipelineArtifactURN string + ServiceAspectRecordID string + ServiceDescription *ServiceDescription + ServiceID string + type ServiceDescription struct + Contact any + Controller any + ControllerSchema string + Description string + ID string + Name string + Policy string + RequestSchema any + Schema string + func BuildServiceDescription(tool *ToolHeader, serviceID string, pipelineArtifactURN string) *ServiceDescription + type SimpleProperty struct + Description string + Format string + Name string + Optional bool + Type string + type SimpleToolHeader struct + Contact ... + Description string + Example map[string]any + ID string + Name string + Properties []SimpleProperty + Samples []SimpleProperty + Schema string + ServiceID string + type Source struct + ArtifactID string + ArtifactPath string + Base64 string + MediaType string + Path string + Text string + Type string + URL string + type ToolHeader struct + Contact ... + Description string + FnSchema map[string]any + ID string + Name string + Schema string + ServiceID string + func ConvertSimpleToolToToolHeader(simple *SimpleToolHeader) (*ToolHeader, error) + func LoadToolHeaderFromArchiveBytes(archive []byte) (*ToolHeader, string, error) + func LoadToolHeaderFromArchivePath(archivePath string) (*ToolHeader, string, error) + type UploadMeta struct + ArtifactID string + MTimeUnix int64 + Size int64