Versions in this module Expand all Collapse all v0 v0.1.5 Oct 14, 2026 Changes in this version type Codec + WriteCommitScriptFiles func(ctx context.Context, req ScriptWriteRequest) (*types.ScriptJSONExportResponse, error) + WriteCommitWorkflowFiles func(ctx context.Context, req WorkflowWriteRequest) (*types.WorkflowJSONExportResponse, error) v0.1.4 Sep 19, 2026 Changes in this version + const CurrentVersion + const ScriptJSONFileName + const VersionV1 + const WorkflowJSONFileName + var ErrScriptIDRequired = errors.New("script_id is required in script.json") + var ErrUnsupportedVersion = errors.New("unsupported export file version") + var ErrWorkflowIDRequired = errors.New("workflow_id is required in workflow.json") + func PeekVersion(raw []byte) (string, error) + type Codec interface + DecodeScript func(raw []byte) (*types.ScriptJSONExportResponse, error) + DecodeWorkflow func(raw []byte) (*types.WorkflowJSONExportResponse, error) + InstallScript func(ctx context.Context, req ScriptInstallRequest) (*ScriptInstallResult, error) + InstallWorkflow func(ctx context.Context, req WorkflowInstallRequest) (*WorkflowInstallResult, error) + ScriptIDFromExportScript func(item map[string]any) string + ScriptSnapshotDir func(workflowDir, scriptID string) string + Version func() string + WriteScriptFiles func(ctx context.Context, req ScriptWriteRequest) (*types.ScriptJSONExportResponse, error) + WriteWorkflowFiles func(ctx context.Context, req WorkflowWriteRequest) (*types.WorkflowJSONExportResponse, error) + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Get(version string) Codec + func (r *Registry) List() []Codec + func (r *Registry) Register(codec Codec) + func (r *Registry) Versions() []string + type ScriptInstallRequest struct + CreateMode bool + ProjectID int64 + Raw []byte + ScriptID string + StoreID int64 + StoreMessage string + StoreURL string + type ScriptInstallResult struct + ContainerImageCount int + ContainerTemplateDefinitionCount int + ContainerTemplateSpecCount int + InstalledScriptID int64 + ScriptID string + type ScriptWriteRequest struct + CommitMessage string + ScriptDir string + ScriptPK int64 + type WorkflowInstallRequest struct + BaseDir string + ProjectCode string + ProjectID int64 + Raw []byte + StoreID int64 + StoreMessage string + StoreURL string + WorkflowDir string + type WorkflowInstallResult struct + ContainerImageCount int + ContainerTemplateDefinitionCount int + ContainerTemplateSpecCount int + InstalledScriptCount int + InstalledWorkflowID int64 + WorkflowID string + type WorkflowWriteRequest struct + BaseDir string + CommitMessage string + ProjectID string + WorkflowDir string + WorkflowPK int64