Documentation
¶
Index ¶
- func ResolvePins(dir string, paths []string, m *pathmatch.Matcher) map[string]bool
- type Option
- func ConfigOptions(cc config.CompileConfig) []Option
- func WithCompileRoot(r string) Option
- func WithFullRescan() Option
- func WithIgnore(m *pathmatch.Matcher) Option
- func WithLogger(l *slog.Logger) Option
- func WithMaxFileSize(n int64) Option
- func WithMaxParallelism(n int) Option
- func WithMessage(m string) Option
- func WithPaths(p []string) Option
- func WithPinned(m *pathmatch.Matcher) Option
- func WithPins(p map[string]bool) Option
- func WithRedactor(r *redaction.Redactor) Option
- func WithReseedPinned() Option
- func WithReseedTemperatures() Option
- func WithTemps(t map[string]*float64) Option
- func WithWallClockTimeout(d time.Duration) Option
- type Result
- func Compile(ctx context.Context, st *store.Store, opts ...Option) (*Result, error)
- func CompileDir(ctx context.Context, st *store.Store, dir, message string, opts ...Option) (*Result, error)
- func CompileFile(ctx context.Context, st *store.Store, path, message string, opts ...Option) (*Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
func ConfigOptions ¶ added in v0.3.2
func ConfigOptions(cc config.CompileConfig) []Option
Translate the workspace compile block into options; absent fields keep engine defaults.
func WithCompileRoot ¶
func WithFullRescan ¶ added in v0.1.7
func WithFullRescan() Option
func WithIgnore ¶
func WithLogger ¶
func WithMaxFileSize ¶ added in v0.3.2
func WithMaxParallelism ¶ added in v0.3.2
func WithMessage ¶
func WithPinned ¶ added in v0.3.6
func WithRedactor ¶ added in v0.3.2
func WithReseedPinned ¶ added in v0.3.6
func WithReseedPinned() Option
func WithReseedTemperatures ¶ added in v0.1.8
func WithReseedTemperatures() Option
func WithWallClockTimeout ¶ added in v0.3.2
type Result ¶
func CompileDir ¶
Click to show internal directories.
Click to hide internal directories.