Documentation
¶
Index ¶
- func Bytes(name string, content []byte) error
- func Entrypoint(path string) ([]string, error)
- func EntrypointWithContext(ctx context.Context, path string) ([]string, error)
- func EntrypointWithOptions(ctx context.Context, path string, opts Options) ([]string, error)
- func File(path string) error
- func FileWithContext(ctx context.Context, path string) error
- func FileWithOptions(ctx context.Context, path string, opts Options) error
- func SupportedWorkflowRoles() []string
- func SupportedWorkflowVersion() string
- func Workflow(name string, wf *config.Workflow) error
- func WorkflowImportRule() string
- func WorkflowInvariantNotes() []string
- func WorkflowTopLevelModes() []string
- func Workspace(root string) ([]string, error)
- func WorkspaceWithContext(ctx context.Context, root string) ([]string, error)
- func WorkspaceWithOptions(ctx context.Context, root string, opts Options) ([]string, error)
- type Finding
- type Issue
- type Options
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Entrypoint ¶
Entrypoint validates a scenario entrypoint and its imported components. It is a convenience wrapper for callers that do not own a request context.
func EntrypointWithContext ¶
func EntrypointWithOptions ¶ added in v0.2.7
func File ¶
File validates workflow structure and semantic rules. It is a convenience wrapper for CLI-style callers that do not own a request context.
func FileWithOptions ¶ added in v0.2.7
func SupportedWorkflowRoles ¶
func SupportedWorkflowRoles() []string
func SupportedWorkflowVersion ¶
func SupportedWorkflowVersion() string
func WorkflowImportRule ¶
func WorkflowImportRule() string
func WorkflowInvariantNotes ¶
func WorkflowInvariantNotes() []string
func WorkflowTopLevelModes ¶
func WorkflowTopLevelModes() []string
func Workspace ¶
Workspace validates every scenario entrypoint under a workflow root. It is a convenience wrapper for callers that do not own a request context.
func WorkspaceWithContext ¶
Types ¶
type Finding ¶
type Finding struct {
Severity string `json:"severity"`
Code string `json:"code"`
Message string `json:"message"`
Hint string `json:"hint,omitempty"`
Path string `json:"path,omitempty"`
Phase string `json:"phase,omitempty"`
StepID string `json:"stepId,omitempty"`
Kind string `json:"kind,omitempty"`
}
func AnalyzeFiles ¶
type ValidationError ¶ added in v0.2.1
func (*ValidationError) Error ¶ added in v0.2.1
func (e *ValidationError) Error() string
func (*ValidationError) ValidationIssues ¶ added in v0.2.1
func (e *ValidationError) ValidationIssues() []Issue
Click to show internal directories.
Click to hide internal directories.