sync

package
v3.22.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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