Documentation
¶
Index ¶
Constants ¶
View Source
const ( ImageStatusNew = ImageStatus("new") ImageStatusUpdate = ImageStatus("update") ImageStatusUnchange = ImageStatus("unchange") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db ¶
type Db struct {
Path string `yaml:"path,omitempty"`
}
Db holds data necessary for database configuration
type Flags ¶
type Flags struct { Cfgfile string Populate bool Timezone string LogLevel string LogJson bool RunOnce bool Docker bool }
Flags holds flags from command line
type Item ¶
type Item struct { Image string `yaml:"image,omitempty"` RegCredID string `yaml:"reg_cred_id,omitempty"` InsecureTLS bool `yaml:"insecure_tls,omitempty"` WatchRepo bool `yaml:"watch_repo,omitempty"` IncludeTags []string `yaml:"include_tags,omitempty"` ExcludeTags []string `yaml:"exclude_tags,omitempty"` Timeout int `yaml:"timeout,omitempty"` RegCred RegCred `json:"-"` }
Item holds item configuration for a Docker image
type Mail ¶
type Mail struct { Enable bool `yaml:"enable,omitempty"` Host string `yaml:"host,omitempty"` Port int `yaml:"port,omitempty"` SSL bool `yaml:"ssl,omitempty"` InsecureSkipVerify bool `yaml:"insecure_skip_verify,omitempty"` Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` From string `yaml:"from,omitempty"` To string `yaml:"to,omitempty"` }
Mail holds mail notification configuration details
type NotifEntry ¶
type NotifEntry struct { Status ImageStatus `json:"status,omitempty"` Image registry.Image `json:"image,omitempty"` Analysis registry.Inspect `json:"analysis,omitempty"` }
NotifEntry represents a notification entry
type RegCred ¶
type RegCred struct { Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` }
RegCred holds registry credential
type Watch ¶
type Watch struct {
Schedule string `yaml:"schedule,omitempty"`
}
Watch holds data necessary for watch configuration
type Webhook ¶
type Webhook struct { Enable bool `yaml:"enable,omitempty"` Endpoint string `yaml:"endpoint,omitempty"` Method string `yaml:"method,omitempty"` Headers map[string]string `yaml:"headers,omitempty"` Timeout int `yaml:"timeout,omitempty"` }
Webhook holds webhook notification configuration details
Source Files
¶
Click to show internal directories.
Click to hide internal directories.