types

package
v1.0.4-gitspaces-beta Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Trace specifies whether git operations' stdIn/stdOut/err are traced.
	// NOTE: Currently limited to 'push' operation until we move to internal command package.
	Trace bool
	// Root specifies the directory containing git related data (e.g. repos, ...)
	Root string
	// TmpDir (optional) specifies the directory for temporary data (e.g. repo clones, ...)
	TmpDir string
	// HookPath points to the binary used as git server hook.
	HookPath string

	// LastCommitCache holds configuration options for the last commit cache.
	LastCommitCache LastCommitCacheConfig
}

Config defines the configuration for the git package.

type LastCommitCacheConfig

type LastCommitCacheConfig struct {
	// Mode determines where the cache will be.
	Mode enum.LastCommitCacheMode

	// Duration defines cache duration of last commit.
	Duration time.Duration
}

LastCommitCacheConfig holds configuration options for the last commit cache.

Jump to

Keyboard shortcuts

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