domain

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package domain provides the Domain interface for automatic CLI generation.

Index

Constants

This section is empty.

Variables

View Source
var (
	NewResult              = domain.NewResult
	NewResultWithData      = domain.NewResultWithData
	NewErrorResult         = domain.NewErrorResult
	NewErrorResultMultiple = domain.NewErrorResultMultiple
	NewContext             = domain.NewContext
	NewContextWithVerbose  = domain.NewContextWithVerbose
)

Re-export constructors

View Source
var Version = "dev"

Version is set at build time

Functions

func CreateRootCommand

func CreateRootCommand(d Domain) *cobra.Command

CreateRootCommand creates a root command with all standard domain commands. This allows callers to add additional domain-specific commands before executing.

func Run

func Run(d Domain) error

Run creates and executes a CLI for the given domain. It automatically generates commands based on the domain's interface implementations.

Types

type BuildOpts

type BuildOpts = domain.BuildOpts

BuildOpts contains options for the Build operation.

type Builder

type Builder = domain.Builder

Builder builds domain resources from source code.

type Context

type Context = domain.Context

Context wraps context.Context with additional domain operation context.

type Domain

type Domain = domain.Domain

Domain is the core interface for wetwire domains.

type Error

type Error = domain.Error

Error represents a structured error with location and context information.

type GitLabDomain

type GitLabDomain struct{}

GitLabDomain implements the Domain interface for GitLab CI/CD.

func (*GitLabDomain) Builder

func (d *GitLabDomain) Builder() coredomain.Builder

Builder returns the GitLab CI builder implementation

func (*GitLabDomain) Differ added in v1.10.0

func (d *GitLabDomain) Differ() coredomain.Differ

Differ returns the GitLab differ implementation

func (*GitLabDomain) Grapher

func (d *GitLabDomain) Grapher() coredomain.Grapher

Grapher returns the GitLab dependency grapher implementation

func (*GitLabDomain) Initializer

func (d *GitLabDomain) Initializer() coredomain.Initializer

Initializer returns the GitLab project initializer implementation

func (*GitLabDomain) Linter

func (d *GitLabDomain) Linter() coredomain.Linter

Linter returns the GitLab linter implementation

func (*GitLabDomain) Lister

func (d *GitLabDomain) Lister() coredomain.Lister

Lister returns the GitLab resource lister implementation

func (*GitLabDomain) Name

func (d *GitLabDomain) Name() string

Name returns "gitlab"

func (*GitLabDomain) Validator

func (d *GitLabDomain) Validator() coredomain.Validator

Validator returns the GitLab validator implementation

func (*GitLabDomain) Version

func (d *GitLabDomain) Version() string

Version returns the current version

type GraphOpts

type GraphOpts = domain.GraphOpts

GraphOpts contains options for the Graph operation.

type Grapher

type Grapher = domain.Grapher

Grapher visualizes relationships between domain resources.

type GrapherDomain

type GrapherDomain = domain.GrapherDomain

GrapherDomain is an optional interface for domains that support graphing.

type ImportOpts

type ImportOpts = domain.ImportOpts

ImportOpts contains options for the Import operation.

type Importer

type Importer = domain.Importer

Importer imports external resources or configurations into the domain.

type ImporterDomain

type ImporterDomain = domain.ImporterDomain

ImporterDomain is an optional interface for domains that support importing.

type InitOpts

type InitOpts = domain.InitOpts

InitOpts contains options for the Init operation.

type Initializer

type Initializer = domain.Initializer

Initializer creates new domain projects with example code.

type LintOpts

type LintOpts = domain.LintOpts

LintOpts contains options for the Lint operation.

type Linter

type Linter = domain.Linter

Linter validates domain resources according to domain-specific rules.

type ListOpts

type ListOpts = domain.ListOpts

ListOpts contains options for the List operation.

type Lister

type Lister = domain.Lister

Lister discovers and lists domain resources.

type ListerDomain

type ListerDomain = domain.ListerDomain

ListerDomain is an optional interface for domains that support listing.

type Result

type Result = domain.Result

Result represents the outcome of a domain operation.

type ValidateOpts

type ValidateOpts = domain.ValidateOpts

ValidateOpts contains options for the Validate operation.

type Validator

type Validator = domain.Validator

Validator validates that generated output conforms to domain specifications.

Jump to

Keyboard shortcuts

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