Documentation
¶
Index ¶
- Variables
- func CategoryForEntry(entry Entry) string
- func MustRegister[T any](def Definition) struct{}
- func ProjectRuntimeOutputs(entry Entry, rendered map[string]any, runtime map[string]any, ...) map[string]any
- func ProjectRuntimeOutputsForKind(kind string, rendered map[string]any, runtime map[string]any, ...) (map[string]any, error)
- func RegisterSourceFS(source fs.FS) struct{}
- func RegisteredKinds() []string
- type AskMetadata
- type AuthoringBinding
- type AuthoringBuilder
- type ConstrainedLiteralField
- type ContractHints
- type Definition
- type Docs
- type Entry
- type FieldDoc
- type OutputRootConstraint
- type ParallelMetadata
- type QualityRule
- type RuntimeOutputOptions
- type Schema
- type SchemaProjection
- type SourceRef
- type StepCatalogEntry
- type ToolProjection
- type ValidationHint
- type WorkflowProjection
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PatchCommandToolSchema = patchCommandToolSchema PatchWriteContainerdConfigToolSchema = patchWriteContainerdConfigToolSchema PatchWriteContainerdRegistryHostsToolSchema = patchWriteContainerdRegistryHostsToolSchema PatchEnsureDirectoryToolSchema = patchEnsureDirectoryToolSchema PatchDownloadImageToolSchema = patchDownloadImageToolSchema PatchImageLoadToolSchema = patchImageLoadToolSchema PatchVerifyImageToolSchema = patchVerifyImageToolSchema PatchCheckHostToolSchema = patchCheckHostToolSchema PatchKernelModuleToolSchema = patchKernelModuleToolSchema PatchInitKubeadmToolSchema = patchInitKubeadmToolSchema PatchJoinKubeadmToolSchema = patchJoinKubeadmToolSchema PatchResetKubeadmToolSchema = patchResetKubeadmToolSchema PatchUpgradeKubeadmToolSchema = patchUpgradeKubeadmToolSchema PatchCheckKubernetesClusterToolSchema = patchCheckKubernetesClusterToolSchema PatchMessageToolSchema = patchMessageToolSchema PatchConfirmToolSchema = patchConfirmToolSchema PatchInputToolSchema = patchInputToolSchema )
View Source
var ( PatchDownloadFileToolSchema = patchDownloadFileToolSchema PatchWriteFileToolSchema = patchWriteFileToolSchema PatchCopyFileToolSchema = patchCopyFileToolSchema PatchExtractArchiveToolSchema = patchExtractArchiveToolSchema PatchEditFileToolSchema = patchEditFileToolSchema PatchEditTOMLToolSchema = patchEditTOMLToolSchema PatchEditYAMLToolSchema = patchEditYAMLToolSchema PatchEditJSONToolSchema = patchEditJSONToolSchema PatchStructuredEditToolSchema = patchStructuredEditToolSchema PatchWaitForServiceToolSchema = patchWaitForServiceToolSchema PatchWaitForCommandToolSchema = patchWaitForCommandToolSchema PatchWaitForFileToolSchema = patchWaitForFileToolSchema PatchWaitForMissingFileToolSchema = patchWaitForMissingFileToolSchema PatchWaitForTCPPortToolSchema = patchWaitForTCPPortToolSchema PatchWaitForMissingTCPPortToolSchema = patchWaitForMissingTCPPortToolSchema PatchWaitToolSchema = patchWaitToolSchema )
View Source
var ( PatchRefreshRepositoryToolSchema = patchRefreshRepositoryToolSchema PatchDownloadPackageToolSchema = patchDownloadPackageToolSchema PatchInstallPackageToolSchema = patchInstallPackageToolSchema PatchInstallAptPackageToolSchema = patchInstallAptPackageToolSchema PatchInstallDnfPackageToolSchema = patchInstallDnfPackageToolSchema PatchConfigureRepositoryToolSchema = patchConfigureRepositoryToolSchema )
View Source
var ( PatchManageServiceToolSchema = patchManageServiceToolSchema PatchSwapToolSchema = patchSwapToolSchema PatchCreateSymlinkToolSchema = patchCreateSymlinkToolSchema PatchSysctlToolSchema = patchSysctlToolSchema PatchWriteSystemdUnitToolSchema = patchWriteSystemdUnitToolSchema )
Functions ¶
func CategoryForEntry ¶ added in v0.2.2
func MustRegister ¶
func MustRegister[T any](def Definition) struct{}
func ProjectRuntimeOutputs ¶ added in v0.2.2
func ProjectRuntimeOutputsForKind ¶ added in v0.2.2
func RegisterSourceFS ¶
func RegisteredKinds ¶
func RegisteredKinds() []string
Types ¶
type AskMetadata ¶
type AskMetadata struct {
Capabilities []string
ContractHints ContractHints
Builders []AuthoringBuilder
MatchSignals []string
KeyFields []string
ValidationHints []ValidationHint
ConstrainedLiteralFields []ConstrainedLiteralField
QualityRules []QualityRule
AntiSignals []string
}
func ProjectAsk ¶
func ProjectAsk(entry Entry) AskMetadata
type AuthoringBinding ¶ added in v0.2.1
type AuthoringBuilder ¶ added in v0.2.1
type ConstrainedLiteralField ¶
type ContractHints ¶ added in v0.2.1
type Definition ¶
type Definition struct {
Kind string
Family string
FamilyTitle string
Category string
Group string
GroupOrder int
DocsPage string
DocsOrder int
Visibility string
Roles []string
Outputs []string
SchemaFile string
SchemaPatch func(root map[string]any)
Summary string
WhenToUse string
Example string
Notes []string
Parallel ParallelMetadata
Ask AskMetadata
}
type OutputRootConstraint ¶ added in v0.2.3
type ParallelMetadata ¶ added in v0.2.3
type ParallelMetadata struct {
ApplySafe bool
ApplyTargetPaths []string
PrepareOutput OutputRootConstraint
}
type QualityRule ¶
type RuntimeOutputOptions ¶ added in v0.2.2
type SchemaProjection ¶
func ProjectSchema ¶
func ProjectSchema(entry Entry) SchemaProjection
type StepCatalogEntry ¶
type StepCatalogEntry = Entry
StepCatalogEntry is the explicit source-of-truth entry consumed by workflow, schema, docs, and ask projections.
func LookupCatalogEntry ¶
func LookupCatalogEntry(kind string) (StepCatalogEntry, bool, error)
type ToolProjection ¶
type ToolProjection struct {
Kind string
Category string
Summary string
WhenToUse string
Example string
Notes []string
FieldDocs map[string]FieldDoc
}
func ProjectTool ¶
func ProjectTool(entry Entry) ToolProjection
type ValidationHint ¶
type WorkflowProjection ¶
type WorkflowProjection struct {
Kind string
Family string
FamilyTitle string
Group string
GroupOrder int
DocsPage string
DocsOrder int
SchemaFile string
Visibility string
Category string
Summary string
WhenToUse string
Roles []string
Outputs []string
Parallel ParallelMetadata
Generator string
}
func ProjectWorkflow ¶
func ProjectWorkflow(entry Entry, generator string) WorkflowProjection
Click to show internal directories.
Click to hide internal directories.