Documentation
¶
Index ¶
- func NewFileLogger(path string) *logrus.Logger
- type Auth
- type Client
- func (c *Client) GenerateSyncTask(source string, destination string) ([]*UrlPair, error)
- func (c *Client) GetAFailedTask() (*sync.SyncTask, bool)
- func (c *Client) GetAFailedUrlPair() (*UrlPair, bool)
- func (c *Client) GetATask() (*sync.SyncTask, bool)
- func (c *Client) GetAUrlPair() (*UrlPair, bool)
- func (c *Client) PutAFailedTask(failedTask *sync.SyncTask)
- func (c *Client) PutAFailedUrlPair(failedUrlPair *UrlPair)
- func (c *Client) PutATask(task *sync.SyncTask)
- func (c *Client) PutUrlPairs(urlPairs []*UrlPair)
- func (c *Client) Run()
- type Config
- type UrlPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileLogger ¶
create a log file and init logger
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewSyncClient ¶
func (*Client) GenerateSyncTask ¶
func (*Client) GetAFailedUrlPair ¶
func (*Client) GetAUrlPair ¶
func (*Client) PutAFailedTask ¶
func (*Client) PutAFailedUrlPair ¶
func (*Client) PutUrlPairs ¶
type Config ¶
type Config struct {
// the authentication information of each registry
AuthList map[string]Auth `json:"auth"`
// a <source_repo>:<dest_repo> map
ImageList map[string]string `json:"images"`
// contains filtered or unexported fields
}
The configure infomation of sync client
func NewSyncConfig ¶
func (*Config) GetImageList ¶
Click to show internal directories.
Click to hide internal directories.