Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileLogger ¶
NewFileLogger creates a log file and init logger
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client describes a synchronization client
type Config ¶
type Config struct {
// the authentication information of each registry
AuthList map[string]utils.Auth `json:"auth" yaml:"auth"`
// a <source_repo>:<dest_repo> map
ImageList map[string]interface{} `json:"images" yaml:"images"`
// contains filtered or unexported fields
}
Config information of sync client
func NewSyncConfig ¶
func NewSyncConfig(configFile, authFilePath, imageFilePath string, osFilterList, archFilterList []string, logger *logrus.Logger) (*Config, error)
NewSyncConfig creates a Config struct
Click to show internal directories.
Click to hide internal directories.