Documentation
¶
Overview ¶
Package wetwire_gitlab_go provides types and interfaces for GitLab CI/CD pipeline synthesis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildResult ¶
type BuildResult struct {
Success bool `json:"success"`
Output string `json:"output,omitempty"`
Errors []string `json:"errors,omitempty"`
FilePath string `json:"file_path,omitempty"`
}
BuildResult represents the result of a build operation.
type DiscoveredJob ¶
type DiscoveredJob struct {
Name string `json:"name"`
VariableName string `json:"variable_name"`
FilePath string `json:"file_path"`
Line int `json:"line"`
Dependencies []string `json:"dependencies,omitempty"`
}
DiscoveredJob represents a job discovered from Go source code.
type DiscoveredPipeline ¶
type DiscoveredPipeline struct {
Name string `json:"name"`
VariableName string `json:"variable_name"`
FilePath string `json:"file_path"`
Line int `json:"line"`
Jobs []DiscoveredJob `json:"jobs,omitempty"`
}
DiscoveredPipeline represents a pipeline discovered from Go source code.
type JobRef ¶
type JobRef struct {
Job string `json:"job,omitempty"`
Artifacts bool `json:"artifacts,omitempty"`
Optional bool `json:"optional,omitempty"`
}
JobRef represents a reference to another job for needs/dependencies.
func (JobRef) MarshalJSON ¶
MarshalJSON serializes JobRef to GitLab CI needs format. Simple references are serialized as strings, complex ones as objects.
type LintIssue ¶
type LintIssue struct {
RuleID string `json:"rule_id"`
Message string `json:"message"`
FilePath string `json:"file_path"`
Line int `json:"line"`
Column int `json:"column,omitempty"`
Severity string `json:"severity"`
Fixable bool `json:"fixable,omitempty"`
Suggestion string `json:"suggestion,omitempty"`
}
LintIssue represents a single lint issue.
type LintResult ¶
type LintResult struct {
Success bool `json:"success"`
Issues []LintIssue `json:"issues,omitempty"`
}
LintResult represents the result of a lint operation.
type ListResult ¶
type ListResult struct {
Pipelines []DiscoveredPipeline `json:"pipelines,omitempty"`
Jobs []DiscoveredJob `json:"jobs,omitempty"`
}
ListResult represents the result of a list operation.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
wetwire-gitlab
command
Package main provides adapter implementations for wetwire-core-go command interfaces.
|
Package main provides adapter implementations for wetwire-core-go command interfaces. |
|
Package codegen provides code generation tooling for GitLab CI/CD types.
|
Package codegen provides code generation tooling for GitLab CI/CD types. |
|
Package components provides typed Go wrappers for GitLab CI/CD components.
|
Package components provides typed Go wrappers for GitLab CI/CD components. |
|
examples
|
|
|
no_gomod
Example pipeline without requiring go.mod Run: wetwire-gitlab build .
|
Example pipeline without requiring go.mod Run: wetwire-gitlab build . |
|
matrix-builds
module
|
|
|
internal
|
|
|
agent
Package agent provides tool definitions and handlers for wetwire-core-go integration.
|
Package agent provides tool definitions and handlers for wetwire-core-go integration. |
|
artifacts
Package artifacts provides analysis and optimization for GitLab CI/CD artifact configurations.
|
Package artifacts provides analysis and optimization for GitLab CI/CD artifact configurations. |
|
discover
Package discover provides AST-based pipeline and job discovery from Go source files.
|
Package discover provides AST-based pipeline and job discovery from Go source files. |
|
export
Package export provides conversion from GitLab CI to other CI/CD formats.
|
Package export provides conversion from GitLab CI to other CI/CD formats. |
|
graph
Package graph provides DAG graph generation for pipeline visualization.
|
Package graph provides DAG graph generation for pipeline visualization. |
|
importer
Package importer provides YAML parsing for converting existing .gitlab-ci.yml files to an intermediate representation for Go code generation.
|
Package importer provides YAML parsing for converting existing .gitlab-ci.yml files to an intermediate representation for Go code generation. |
|
linter
Package linter provides Go code quality rules for wetwire pipeline definitions.
|
Package linter provides Go code quality rules for wetwire pipeline definitions. |
|
optimizer
Package optimizer provides pipeline optimization analysis.
|
Package optimizer provides pipeline optimization analysis. |
|
profile
Package profile provides performance analysis for GitLab CI/CD pipelines.
|
Package profile provides performance analysis for GitLab CI/CD pipelines. |
|
reference
Package reference provides testing utilities for validating pipeline import/build round-trips against real GitLab CI examples.
|
Package reference provides testing utilities for validating pipeline import/build round-trips against real GitLab CI examples. |
|
runner
Package runner provides runtime value extraction via temporary Go program generation.
|
Package runner provides runtime value extraction via temporary Go program generation. |
|
schema
Package schema provides offline schema validation for GitLab CI/CD pipelines.
|
Package schema provides offline schema validation for GitLab CI/CD pipelines. |
|
serialize
Package serialize provides YAML serialization for GitLab CI/CD pipeline types.
|
Package serialize provides YAML serialization for GitLab CI/CD pipeline types. |
|
template
Package template provides pipeline YAML building with topological sorting for correct job dependency ordering.
|
Package template provides pipeline YAML building with topological sorting for correct job dependency ordering. |
|
validation
Package validation provides GitLab CI YAML validation using glab CLI.
|
Package validation provides GitLab CI YAML validation using glab CLI. |
|
Package intrinsics provides helper types, functions, and predefined constants for GitLab CI/CD pipeline definitions.
|
Package intrinsics provides helper types, functions, and predefined constants for GitLab CI/CD pipeline definitions. |
|
Package pipeline provides core types for GitLab CI/CD pipeline definitions.
|
Package pipeline provides core types for GitLab CI/CD pipeline definitions. |
|
Package runner provides types for GitLab Runner config.toml configuration.
|
Package runner provides types for GitLab Runner config.toml configuration. |
|
Package templates provides typed wrappers for GitLab CI/CD templates.
|
Package templates provides typed wrappers for GitLab CI/CD templates. |