Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checker ¶
type Checker interface { IsUpToDate() (bool, error) Value() (interface{}, error) OnError() error Kind() string }
Checker is an interface that checks if the status is up-to-date
type Checksum ¶
type Checksum struct { TempDir string TaskDir string Task string Sources []string Generates []string Dry bool }
Checksum validades if a task is up to date by calculating its source files checksum
func (*Checksum) IsUpToDate ¶
IsUpToDate implements the Checker interface
type None ¶
type None struct{}
None is a no-op Checker
func (None) IsUpToDate ¶
IsUpToDate implements the Checker interface
type Timestamp ¶
type Timestamp struct { TempDir string Task string Dir string Sources []string Generates []string Dry bool }
Timestamp checks if any source change compared with the generated files, using file modifications timestamps.
func (*Timestamp) IsUpToDate ¶
IsUpToDate implements the Checker interface
Click to show internal directories.
Click to hide internal directories.