config

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCacheDir

func GetCacheDir() string

GetCacheDir returns the cache directory for git-ci

func GetConfigDir

func GetConfigDir() string

GetConfigDir returns the config directory for git-ci

Types

type RunnerConfig

type RunnerConfig struct {
	DryRun      bool              // Show what would be executed without running
	Verbose     bool              // Enable verbose output
	Quiet       bool              // Suppress non-essential output (errors still print)
	PullImages  bool              // Pull Docker images before running
	NoCache     bool              // Disable caching
	WorkDir     string            // Working directory for execution
	Environment map[string]string // Additional environment variables
	Timeout     int               // Timeout in minutes (0 = no timeout)
	Volumes     []string          // Docker volumes to mount
	Network     string            // Docker network mode
	Memory      string            // Memory limit (e.g., "2g", "512m")
	CPUs        string            // CPU limit (e.g., "2", "0.5")
}

RunnerConfig holds configuration for job runners

func DefaultConfig

func DefaultConfig() *RunnerConfig

DefaultConfig returns a RunnerConfig with sensible defaults

Jump to

Keyboard shortcuts

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