status

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	IsUpToDate() (bool, error)
	OnError() error
}

Checker is an interface that checks if the status is up-to-date

type Checksum

type Checksum struct {
	Dir     string
	Task    string
	Sources []string
}

Checksum validades if a task is up to date by calculating its source files checksum

func (*Checksum) IsUpToDate

func (c *Checksum) IsUpToDate() (bool, error)

IsUpToDate implements the Checker interface

func (*Checksum) OnError

func (c *Checksum) OnError() error

OnError implements the Checker interface

type None

type None struct{}

None is a no-op Checker

func (None) IsUpToDate

func (None) IsUpToDate() (bool, error)

IsUpToDate implements the Checker interface

func (None) OnError

func (None) OnError() error

OnError implements the Checker interface

type Timestamp

type Timestamp struct {
	Dir       string
	Sources   []string
	Generates []string
}

Timestamp checks if any source change compared with the generated files, using file modifications timestamps.

func (*Timestamp) IsUpToDate

func (t *Timestamp) IsUpToDate() (bool, error)

IsUpToDate implements the Checker interface

func (*Timestamp) OnError

func (*Timestamp) OnError() error

OnError implements the Checker interface

Jump to

Keyboard shortcuts

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