schemamodel

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CopyFileStepSpec

type CopyFileStepSpec struct {
	Source *FileSource `json:"source,omitempty"`
	Path   string      `json:"path,omitempty"`
	Mode   string      `json:"mode,omitempty"`
}

type DownloadFileItem

type DownloadFileItem struct {
	Source     *FileSource `json:"source,omitempty"`
	Fetch      *FileFetch  `json:"fetch,omitempty"`
	OutputPath string      `json:"outputPath,omitempty"`
	Mode       string      `json:"mode,omitempty"`
}

type DownloadFileStepDocument

type DownloadFileStepDocument struct {
	ID         string               `json:"id"`
	APIVersion string               `json:"apiVersion"`
	Kind       string               `json:"kind"`
	Metadata   map[string]any       `json:"metadata,omitempty"`
	When       string               `json:"when,omitempty"`
	Register   map[string]string    `json:"register,omitempty"`
	Retry      int                  `json:"retry,omitempty"`
	Timeout    string               `json:"timeout,omitempty"`
	Spec       DownloadFileStepSpec `json:"spec"`
}

type DownloadFileStepSpec

type DownloadFileStepSpec struct {
	Items      []DownloadFileItem `json:"items,omitempty"`
	Source     *FileSource        `json:"source,omitempty"`
	Fetch      *FileFetch         `json:"fetch,omitempty"`
	OutputPath string             `json:"outputPath,omitempty"`
	Mode       string             `json:"mode,omitempty"`
}

type EditFileRule

type EditFileRule struct {
	Match       string `json:"match"`
	ReplaceWith string `json:"replaceWith,omitempty"`
	Op          string `json:"op,omitempty"`
}

type EditFileStepSpec

type EditFileStepSpec struct {
	Path   string         `json:"path,omitempty"`
	Backup bool           `json:"backup,omitempty"`
	Edits  []EditFileRule `json:"edits,omitempty"`
	Mode   string         `json:"mode,omitempty"`
}

type ExtractArchiveStepSpec

type ExtractArchiveStepSpec struct {
	Source  *FileSource `json:"source,omitempty"`
	Path    string      `json:"path,omitempty"`
	Include []string    `json:"include,omitempty"`
	Mode    string      `json:"mode,omitempty"`
}

type FileBundleRef

type FileBundleRef struct {
	Root string `json:"root"`
	Path string `json:"path"`
}

type FileFetch

type FileFetch struct {
	OfflineOnly bool              `json:"offlineOnly,omitempty"`
	Sources     []FileFetchSource `json:"sources,omitempty"`
}

type FileFetchSource

type FileFetchSource struct {
	Type string `json:"type"`
	Path string `json:"path,omitempty"`
	URL  string `json:"url,omitempty"`
}

type FileSource

type FileSource struct {
	URL    string         `json:"url,omitempty"`
	Path   string         `json:"path,omitempty"`
	SHA256 string         `json:"sha256,omitempty"`
	Bundle *FileBundleRef `json:"bundle,omitempty"`
}

type ToolDefinitionDocument

type ToolDefinitionDocument struct {
	APIVersion string                 `json:"apiVersion"`
	Kind       string                 `json:"kind"`
	Metadata   ToolDefinitionMetadata `json:"metadata"`
	Spec       ToolDefinitionSpec     `json:"spec"`
}

type ToolDefinitionFailurePolicy

type ToolDefinitionFailurePolicy struct {
	Retryable    bool `json:"retryable,omitempty"`
	DefaultRetry int  `json:"defaultRetry,omitempty"`
}

type ToolDefinitionIdempotency

type ToolDefinitionIdempotency struct {
	Mode string   `json:"mode"`
	Keys []string `json:"keys"`
}

type ToolDefinitionMetadata

type ToolDefinitionMetadata struct {
	Name        string            `json:"name"`
	Labels      map[string]string `json:"labels,omitempty"`
	Description string            `json:"description,omitempty"`
}

type ToolDefinitionOutputContract

type ToolDefinitionOutputContract struct {
	Artifact  []string `json:"artifacts,omitempty"`
	StateKeys []string `json:"stateKeys,omitempty"`
}

type ToolDefinitionRequires

type ToolDefinitionRequires struct {
	Network          bool   `json:"network,omitempty"`
	Root             bool   `json:"root,omitempty"`
	ContainerRuntime string `json:"containerRuntime,omitempty"`
}

type ToolDefinitionSpec

type ToolDefinitionSpec struct {
	Version        string                        `json:"version"`
	Summary        string                        `json:"summary"`
	Category       string                        `json:"category"`
	OfflineAllowed bool                          `json:"offlineAllowed,omitempty"`
	Requires       *ToolDefinitionRequires       `json:"requires,omitempty"`
	InputSchema    map[string]any                `json:"inputSchema"`
	OutputContract *ToolDefinitionOutputContract `json:"outputContract,omitempty"`
	Idempotency    *ToolDefinitionIdempotency    `json:"idempotency,omitempty"`
	FailurePolicy  *ToolDefinitionFailurePolicy  `json:"failurePolicy,omitempty"`
}

type WaitForCommandStepSpec

type WaitForCommandStepSpec struct {
	Interval     string   `json:"interval,omitempty"`
	InitialDelay string   `json:"initialDelay,omitempty"`
	Command      []string `json:"command,omitempty"`
	Timeout      string   `json:"timeout,omitempty"`
	PollInterval string   `json:"pollInterval,omitempty"`
}

type WaitForFileStepSpec

type WaitForFileStepSpec struct {
	Interval     string `json:"interval,omitempty"`
	InitialDelay string `json:"initialDelay,omitempty"`
	Path         string `json:"path,omitempty"`
	Type         string `json:"type,omitempty"`
	NonEmpty     bool   `json:"nonEmpty,omitempty"`
	Timeout      string `json:"timeout,omitempty"`
	PollInterval string `json:"pollInterval,omitempty"`
}

type WaitForMissingFileStepSpec

type WaitForMissingFileStepSpec struct {
	Interval     string   `json:"interval,omitempty"`
	InitialDelay string   `json:"initialDelay,omitempty"`
	Path         string   `json:"path,omitempty"`
	Paths        []string `json:"paths,omitempty"`
	Glob         string   `json:"glob,omitempty"`
	Type         string   `json:"type,omitempty"`
	Timeout      string   `json:"timeout,omitempty"`
	PollInterval string   `json:"pollInterval,omitempty"`
}

type WaitForServiceStepDocument

type WaitForServiceStepDocument struct {
	ID         string                 `json:"id"`
	APIVersion string                 `json:"apiVersion"`
	Kind       string                 `json:"kind"`
	Metadata   map[string]any         `json:"metadata,omitempty"`
	When       string                 `json:"when,omitempty"`
	Register   map[string]string      `json:"register,omitempty"`
	Retry      int                    `json:"retry,omitempty"`
	Timeout    string                 `json:"timeout,omitempty"`
	Spec       WaitForServiceStepSpec `json:"spec"`
}

type WaitForServiceStepSpec

type WaitForServiceStepSpec struct {
	Interval     string `json:"interval,omitempty"`
	InitialDelay string `json:"initialDelay,omitempty"`
	Name         string `json:"name,omitempty"`
	Timeout      string `json:"timeout,omitempty"`
	PollInterval string `json:"pollInterval,omitempty"`
}

type WaitTCPPortStepSpec

type WaitTCPPortStepSpec struct {
	Interval     string `json:"interval,omitempty"`
	InitialDelay string `json:"initialDelay,omitempty"`
	Address      string `json:"address,omitempty"`
	Port         string `json:"port,omitempty"`
	Timeout      string `json:"timeout,omitempty"`
	PollInterval string `json:"pollInterval,omitempty"`
}

type WorkflowDocument

type WorkflowDocument struct {
	Version string            `json:"version"`
	Vars    map[string]any    `json:"vars,omitempty"`
	Phases  []WorkflowPhase   `json:"phases,omitempty"`
	Steps   []WorkflowStepRef `json:"steps,omitempty"`
}

type WorkflowImport

type WorkflowImport struct {
	Path string `json:"path"`
	When string `json:"when,omitempty"`
}

type WorkflowPhase

type WorkflowPhase struct {
	Name           string            `json:"name"`
	MaxParallelism int               `json:"maxParallelism,omitempty"`
	Imports        []WorkflowImport  `json:"imports,omitempty"`
	Steps          []WorkflowStepRef `json:"steps,omitempty"`
}

type WorkflowStepRef

type WorkflowStepRef struct {
	ID            string            `json:"id"`
	APIVersion    string            `json:"apiVersion,omitempty"`
	Kind          string            `json:"kind"`
	Metadata      map[string]any    `json:"metadata,omitempty"`
	When          string            `json:"when,omitempty"`
	ParallelGroup string            `json:"parallelGroup,omitempty"`
	Register      map[string]string `json:"register,omitempty"`
	Retry         int               `json:"retry,omitempty"`
	Timeout       string            `json:"timeout,omitempty"`
	Spec          map[string]any    `json:"spec"`
}

type WriteFileStepSpec

type WriteFileStepSpec struct {
	Path     string `json:"path,omitempty"`
	Content  string `json:"content,omitempty"`
	Template string `json:"template,omitempty"`
	Mode     string `json:"mode,omitempty"`
}

Jump to

Keyboard shortcuts

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