cicd

package
v0.0.0-...-a1f8bd1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateParams

type GenerateParams struct {
	StackName  string
	Output     string
	ConfigFile string
	Force      bool
	DryRun     bool
	Parent     bool
	Staging    bool
}

GenerateParams contains parameters for workflow generation

type Logger

type Logger interface {
	Debug(ctx context.Context, format string, args ...interface{})
}

Logger interface for debug logging during CI/CD operations

type ParentRepositoryInfo

type ParentRepositoryInfo struct {
	IsParent        bool
	ParentRepoURL   string
	ParentStackPath string
	HasParentConfig bool
}

ParentRepositoryInfo holds information about parent repository configuration

type PreviewParams

type PreviewParams struct {
	StackName   string
	ConfigFile  string
	ShowContent bool
	Parent      bool
	Staging     bool
}

PreviewParams contains parameters for workflow preview

type Result

type Result struct {
	Success  bool
	Message  string
	Files    []string
	Warnings []string
	Data     map[string]interface{}
}

Result contains the result of a CI/CD operation

type Service

type Service struct{}

Service provides core CI/CD functionality that can be shared across CLI, MCP, and chat interfaces

func NewService

func NewService() *Service

NewService creates a new CI/CD service instance

func (*Service) GenerateWorkflows

func (s *Service) GenerateWorkflows(params GenerateParams) (*Result, error)

GenerateWorkflows generates GitHub Actions workflows from server.yaml configuration

func (*Service) GenerateWorkflowsWithContext

func (s *Service) GenerateWorkflowsWithContext(ctx context.Context, logger Logger, params GenerateParams) (*Result, error)

func (*Service) PreviewWorkflows

func (s *Service) PreviewWorkflows(params PreviewParams) (*Result, error)

PreviewWorkflows shows what workflows would be generated without creating files

func (*Service) SyncWorkflows

func (s *Service) SyncWorkflows(params SyncParams) (*Result, error)

SyncWorkflows synchronizes workflows to GitHub repository

func (*Service) ValidateWorkflows

func (s *Service) ValidateWorkflows(params ValidateParams) (*Result, error)

ValidateWorkflows validates existing workflow files against server.yaml configuration

func (*Service) ValidateWorkflowsWithContext

func (s *Service) ValidateWorkflowsWithContext(ctx context.Context, logger Logger, params ValidateParams) (*Result, error)

type SyncParams

type SyncParams struct {
	StackName  string
	ConfigFile string
	DryRun     bool
	Force      bool
	Parent     bool
	Staging    bool
}

SyncParams contains parameters for workflow synchronization

type ValidateParams

type ValidateParams struct {
	StackName    string
	ConfigFile   string
	WorkflowsDir string
	ShowDiff     bool
	Verbose      bool
	Parent       bool
	Staging      bool
}

ValidateParams contains parameters for workflow validation

Jump to

Keyboard shortcuts

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