Documentation ¶
Overview ¶
Package sync implements the sync subcommand.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subcommand ¶
type Subcommand struct { // DNSReportDatabase is the MANDATORY file containing the `dnsreport` database // that we're currently using to avoid repeating measurements. DNSReportDatabase string // RepositoryDir is the MANDATORY directory where to clone the test lists repository. RepositoryDir string // OsChdir is the MANDATORY function to change directory. OsChdir func(dir string) error // OsGetwd is the MANDATORY function to get the current working dir. OsGetwd func() (string, error) // TimeNow is the MANDATORY function to get the current time. TimeNow func() time.Time }
Subcommand is the sync subcommand. The zero value is invalid; please, make sure you initialize all the fields marked as MANDATORY.
func (*Subcommand) Main ¶
func (s *Subcommand) Main()
Main is the main function run by the sync subcommand. This function calls runtimex.PanicOnError in case of failure.
Click to show internal directories.
Click to hide internal directories.