Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidAPIInstance error indicates that no valid api instance was // provided to the syncer constructor. ErrInvalidAPIInstance = errors.New("invalid api instance") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { API *api.API HostPackages bool PackagesPath string PackagesURL string FlatcarUpdatesURL string CheckFrequency time.Duration }
Config represents the configuration used to create a new Syncer instance.
type Syncer ¶
type Syncer struct {
// contains filtered or unexported fields
}
Syncer represents a process in charge of checking for updates in the different official Flatcar channels and updating the Flatcar application in Nebraska as needed (creating new packages and updating channels to point to them). When hostPackages is enabled, packages payloads will be downloaded into packagesPath and package url/filename will be rewritten.
Click to show internal directories.
Click to hide internal directories.