Documentation
¶
Index ¶
- Variables
- type Engine
- func (e Engine) DeleteHistory(h History) error
- func (e Engine) DotToDtt(base gp.GardenPath, dot gp.GardenPath, group string) gp.GardenPath
- func (e Engine) DttToDot(base gp.GardenPath, dtt gp.GardenPath) gp.GardenPath
- func (e Engine) GetConfigDir() (gp.GardenPath, error)
- func (e Engine) GetConfigGroupAll() (map[string]bool, error)
- func (e Engine) GetConfigGroupBase(group, resolver string) (gp.GardenPath, []string, error)
- func (e Engine) GetConfigGroupResolvers(group string) (map[string]string, error)
- func (e Engine) GetConfigGroups(plan string) (map[string]bool, bool, error)
- func (e Engine) GetConfigMode() (string, error)
- func (e Engine) GetConfigPlans() (map[string][]string, error)
- func (e Engine) GetConfigVersion() (string, error)
- func (e Engine) GetHistoryByMode(mode string) ([]History, error)
- func (e Engine) ReadGroupIgnore(group string) (*ignore.Ignore, error)
- func (e *Engine) Tx(fn func(tx *gorm.DB) error) error
- func (e Engine) TxDeleteHistory(tx *gorm.DB, h History) error
- func (e Engine) TxGetHistoryByMode(tx *gorm.DB, mode string) ([]History, error)
- func (e *Engine) TxSafe(fn func(tx *gorm.DB) error) error
- func (e Engine) TxUpsertHistory(tx *gorm.DB, h History) error
- func (e Engine) UpsertHistory(h History) error
- func (e Engine) Walk(root gp.GardenPath, ig *ignore.Ignore, selectIgnored bool, ...) error
- func (e *Engine) WalkDotDir(group string, base gp.GardenPath, onDot func(gp.GardenPath, os.FileInfo) error) (err error)
- func (e *Engine) WalkDttDir(group string, onDtt func(gp.GardenPath, os.FileInfo) error) (err error)
- func (e Engine) WalkIgnored(root gp.GardenPath, ig *ignore.Ignore, ...) error
- func (e Engine) WalkNonIgnored(root gp.GardenPath, ig *ignore.Ignore, ...) error
- type History
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMaxIterExceeded = fmt.Errorf("max iteration exceeded. please check your ignore file")
)
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (Engine) DeleteHistory ¶
func (Engine) DotToDtt ¶
func (e Engine) DotToDtt( base gp.GardenPath, dot gp.GardenPath, group string, ) gp.GardenPath
Returns corresponding dtt path
func (Engine) DttToDot ¶
func (e Engine) DttToDot( base gp.GardenPath, dtt gp.GardenPath, ) gp.GardenPath
Returns corresponding dot path
func (Engine) GetConfigDir ¶
func (e Engine) GetConfigDir() (gp.GardenPath, error)
func (Engine) GetConfigGroupBase ¶
func (Engine) GetConfigGroupResolvers ¶
func (Engine) GetConfigGroups ¶
func (Engine) GetConfigMode ¶
func (Engine) GetConfigVersion ¶
func (Engine) ReadGroupIgnore ¶
func (Engine) TxGetHistoryByMode ¶
func (Engine) UpsertHistory ¶
func (Engine) Walk ¶
func (e Engine) Walk( root gp.GardenPath, ig *ignore.Ignore, selectIgnored bool, onSelect func(gp.GardenPath, os.FileInfo) error, ) error
Run `onSelect` selectively and recursively on files
- If selectIgnored = true, call onSelect on ignored files.
- If selectIgnored = false, call onSelect on non-ignored files.
func (*Engine) WalkDotDir ¶
func (e *Engine) WalkDotDir( group string, base gp.GardenPath, onDot func(gp.GardenPath, os.FileInfo) error, ) (err error)
Scan dotfiles that is not ignored
func (*Engine) WalkDttDir ¶
func (e *Engine) WalkDttDir( group string, onDtt func(gp.GardenPath, os.FileInfo) error, ) (err error)
Scan dotato files in group that is not ignored
func (Engine) WalkIgnored ¶
func (Engine) WalkNonIgnored ¶
Click to show internal directories.
Click to hide internal directories.