Documentation
¶
Index ¶
- func CommandAvailable(name string) bool
- func DefaultLintConfig() build.LintConfig
- func DefaultTestConfig() build.TestConfig
- type BuildOptions
- type BuildSummary
- type CleanOptions
- type Config
- type InstallOptions
- type InstallResult
- type QualityOptions
- type QualitySummary
- type Service
- func (s *Service) BuildAll(ctx context.Context) error
- func (s *Service) BuildCLI(ctx context.Context) error
- func (s *Service) BuildWithResults(ctx context.Context, options BuildOptions) (*BuildSummary, error)
- func (s *Service) Clean(ctx context.Context) error
- func (s *Service) CleanArtifacts(ctx context.Context, options CleanOptions) ([]string, error)
- func (s *Service) Coverage(ctx context.Context) error
- func (s *Service) DockerBuild(ctx context.Context) error
- func (s *Service) DockerClean(ctx context.Context) error
- func (s *Service) DockerComposeDown(ctx context.Context) error
- func (s *Service) DockerComposeUp(ctx context.Context) error
- func (s *Service) DockerPush(ctx context.Context) error
- func (s *Service) DockerRun(ctx context.Context, args []string) error
- func (s *Service) DockerRunCLI(ctx context.Context, args []string) error
- func (s *Service) DownloadDeps(ctx context.Context) error
- func (s *Service) Format(ctx context.Context) error
- func (s *Service) FormatCode(ctx context.Context, useGofumpt bool, paths ...string) error
- func (s *Service) GenerateCoverageHTML(ctx context.Context, config build.TestConfig, outputPath string) error
- func (s *Service) GetVersion() VersionInfo
- func (s *Service) Install(ctx context.Context, targetPath string) error
- func (s *Service) InstallWithResult(ctx context.Context, options InstallOptions) (*build.InstallResult, error)
- func (s *Service) Lint(ctx context.Context) error
- func (s *Service) LintWithResult(ctx context.Context, config build.LintConfig) *build.LintResult
- func (s *Service) ReleaseWithResults(ctx context.Context, version string) (*BuildSummary, error)
- func (s *Service) RunAllChecks(ctx context.Context) error
- func (s *Service) RunCLI(ctx context.Context, args []string) error
- func (s *Service) RunModuleMaintenance(ctx context.Context, operation string, packages ...string) error
- func (s *Service) RunQualityChecks(ctx context.Context, options QualityOptions) (*QualitySummary, error)
- func (s *Service) RunTestsWithResult(ctx context.Context, config build.TestConfig) *build.TestResult
- func (s *Service) StartDev(ctx context.Context) error
- func (s *Service) Test(ctx context.Context, options TestOptions) error
- func (s *Service) TidyDeps(ctx context.Context) error
- func (s *Service) WithOutput(stdout, stderr io.Writer) *Service
- type TestOptions
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandAvailable ¶
func DefaultLintConfig ¶
func DefaultLintConfig() build.LintConfig
func DefaultTestConfig ¶
func DefaultTestConfig() build.TestConfig
Types ¶
type BuildOptions ¶
type BuildSummary ¶
type Config ¶
type Config struct {
BinaryCLI string
BinaryAlias string
BinDir string
CmdCLIDir string
CoverageFile string
CoverageHTML string
DockerImage string
Version string
BuildDate string
GitCommit string
}
Config holds builder configuration.
func DefaultConfig ¶
DefaultConfig returns default configuration for Juleson project
type InstallOptions ¶
type InstallResult ¶
type InstallResult = build.InstallResult
type QualityOptions ¶
type QualityOptions struct {
Format bool
UseGofumpt bool
FormatPaths []string
Lint bool
LintConfig build.LintConfig
Test bool
TestConfig build.TestConfig
Build bool
BuildOptions BuildOptions
}
type QualitySummary ¶
type QualitySummary struct {
Checks []string
LintResult *build.LintResult
TestResult *build.TestResult
BuildSummary *BuildSummary
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service coordinates project-level builder workflows.
func NewService ¶
NewService creates a new builder service.
func (*Service) BuildWithResults ¶
func (s *Service) BuildWithResults(ctx context.Context, options BuildOptions) (*BuildSummary, error)
func (*Service) CleanArtifacts ¶
func (*Service) DockerBuild ¶
DockerBuild builds the Docker image
func (*Service) DockerClean ¶
DockerClean cleans Docker artifacts
func (*Service) DockerComposeDown ¶
DockerComposeDown stops services with docker-compose
func (*Service) DockerComposeUp ¶
DockerComposeUp starts services with docker-compose
func (*Service) DockerPush ¶
DockerPush pushes the Docker image to the registry
func (*Service) DockerRunCLI ¶
DockerRunCLI runs the CLI in a Docker container
func (*Service) DownloadDeps ¶
DownloadDeps downloads Go module dependencies
func (*Service) FormatCode ¶
func (*Service) GenerateCoverageHTML ¶
func (*Service) GetVersion ¶
func (s *Service) GetVersion() VersionInfo
GetVersion returns version information
func (*Service) InstallWithResult ¶
func (s *Service) InstallWithResult(ctx context.Context, options InstallOptions) (*build.InstallResult, error)
func (*Service) LintWithResult ¶
func (s *Service) LintWithResult(ctx context.Context, config build.LintConfig) *build.LintResult
func (*Service) ReleaseWithResults ¶
func (*Service) RunAllChecks ¶
RunAllChecks runs all quality checks (lint, test, build)
func (*Service) RunModuleMaintenance ¶
func (*Service) RunQualityChecks ¶
func (s *Service) RunQualityChecks(ctx context.Context, options QualityOptions) (*QualitySummary, error)
func (*Service) RunTestsWithResult ¶
func (s *Service) RunTestsWithResult(ctx context.Context, config build.TestConfig) *build.TestResult
func (*Service) Test ¶
func (s *Service) Test(ctx context.Context, options TestOptions) error
Test runs tests with the given options
type TestOptions ¶
TestOptions holds options for running tests
type VersionInfo ¶
VersionInfo holds version information