Documentation ¶
Index ¶
- Constants
- Variables
- type Db
- type Healthchecks
- type Image
- type ImagePlatform
- type ImageStatus
- type Job
- type Meta
- type Notif
- type NotifAmqp
- type NotifDiscord
- type NotifEntries
- type NotifEntry
- type NotifGotify
- type NotifMail
- type NotifMatrix
- type NotifMatrixMsgType
- type NotifMqtt
- type NotifPushover
- type NotifRocketChat
- type NotifScript
- type NotifSignalRest
- type NotifSlack
- type NotifTeams
- type NotifTelegram
- type NotifWebhook
- type NotifyOn
- type PrdDocker
- type PrdDockerfile
- type PrdFile
- type PrdKubernetes
- type PrdNomad
- type PrdSwarm
- type Providers
- type RegOpt
- type RegOptSelector
- type RegOpts
- type Watch
Constants ¶
const ( ImageStatusNew = ImageStatus("new") ImageStatusUpdate = ImageStatus("update") ImageStatusUnchange = ImageStatus("unchange") ImageStatusSkip = ImageStatus("skip") ImageStatusError = ImageStatus("error") )
ImageStatus constants
const ( NotifyOnNew = NotifyOn(ImageStatusNew) NotifyOnUpdate = NotifyOn(ImageStatusUpdate) )
NotifyOn constants
const ( NotifDefaultTemplateTitle = `{{ .Entry.Image }} {{ if (eq .Entry.Status "new") }}is available{{ else }}has been updated{{ end }}` NotifDefaultTemplateBody = `` /* 357-byte string literal not displayed */ )
Defaults used for notification template
const ( NotifMatrixMsgTypeNotice = NotifMatrixMsgType("notice") NotifMatrixMsgTypeText = NotifMatrixMsgType("text") )
NotifMatrix message type constants
const ( RegOptSelectorName = RegOptSelector("name") RegOptSelectorImage = RegOptSelector("image") )
RegOpt selector constants
const NotifMailDefaultTemplateBody = `` /* 732-byte string literal not displayed */
NotifMailDefaultTemplateBody ...
const NotifRocketChatDefaultTemplateBody = `` /* 253-byte string literal not displayed */
NotifRocketChatDefaultTemplateBody ...
const NotifSignalRestDefaultTemplateBody = `` /* 253-byte string literal not displayed */
NotifSignalRestDefaultTemplateBody ...
const NotifSlackDefaultTemplateBody = "" /* 212-byte string literal not displayed */
NotifSlackDefaultTemplateBody ...
const NotifTeamsDefaultTemplateBody = "" /* 201-byte string literal not displayed */
NotifTeamsDefaultTemplateBody ...
const NotifTelegramDefaultTemplateBody = `` /* 364-byte string literal not displayed */
NotifTelegramDefaultTemplateBody ...
Variables ¶
var NotifyOnDefaults = []NotifyOn{ NotifyOnNew, NotifyOnUpdate, }
NotifyOnDefaults are the default notify status
Functions ¶
This section is empty.
Types ¶
type Db ¶
type Db struct {
Path string `yaml:"path,omitempty" json:"path,omitempty" validate:"required"`
}
Db holds data necessary for database configuration
type Healthchecks ¶ added in v4.6.0
type Healthchecks struct { BaseURL string `yaml:"baseURL,omitempty" json:"baseURL,omitempty"` UUID string `yaml:"uuid,omitempty" json:"uuid,omitempty" validate:"required"` }
Healthchecks holds data necessary for Healthchecks configuration
func (*Healthchecks) GetDefaults ¶ added in v4.6.0
func (s *Healthchecks) GetDefaults() *Healthchecks
GetDefaults gets the default values
func (*Healthchecks) SetDefaults ¶ added in v4.6.0
func (s *Healthchecks) SetDefaults()
SetDefaults sets the default values
type Image ¶
type Image struct { Name string `yaml:"name,omitempty" json:",omitempty"` Platform ImagePlatform `yaml:"platform,omitempty" json:",omitempty"` RegOpt string `yaml:"regopt,omitempty" json:",omitempty"` WatchRepo bool `yaml:"watch_repo,omitempty" json:",omitempty"` NotifyOn []NotifyOn `yaml:"notify_on,omitempty" json:",omitempty"` MaxTags int `yaml:"max_tags,omitempty" json:",omitempty"` SortTags registry.SortTag `yaml:"sort_tags,omitempty" json:",omitempty"` IncludeTags []string `yaml:"include_tags,omitempty" json:",omitempty"` ExcludeTags []string `yaml:"exclude_tags,omitempty" json:",omitempty"` HubTpl string `yaml:"hub_tpl,omitempty" json:",omitempty"` HubLink string `yaml:"hub_link,omitempty" json:",omitempty"` Metadata map[string]string `yaml:"metadata,omitempty" json:",omitempty"` }
Image holds image configuration
type ImagePlatform ¶
type ImagePlatform struct { OS string `yaml:"os,omitempty" json:",omitempty"` Arch string `yaml:"arch,omitempty" json:",omitempty"` Variant string `yaml:"variant,omitempty" json:",omitempty"` }
ImagePlatform holds image platform configuration
type Job ¶
type Job struct { Provider string Image Image RegImage registry.Image Registry *registry.Client FirstCheck bool HubLinkOverride string }
Job holds job configuration
type Meta ¶
type Meta struct { ID string Name string Desc string URL string Logo string Author string Version string UserAgent string Hostname string }
Meta holds application details
type Notif ¶
type Notif struct { Amqp *NotifAmqp `yaml:"amqp,omitempty" json:"amqp,omitempty"` Discord *NotifDiscord `yaml:"discord,omitempty" json:"discord,omitempty"` Gotify *NotifGotify `yaml:"gotify,omitempty" json:"gotify,omitempty"` Mail *NotifMail `yaml:"mail,omitempty" json:"mail,omitempty"` Matrix *NotifMatrix `yaml:"matrix,omitempty" json:"matrix,omitempty"` Mqtt *NotifMqtt `yaml:"mqtt,omitempty" json:"mqtt,omitempty"` Pushover *NotifPushover `yaml:"pushover,omitempty" json:"pushover,omitempty"` RocketChat *NotifRocketChat `yaml:"rocketchat,omitempty" json:"rocketchat,omitempty"` Script *NotifScript `yaml:"script,omitempty" json:"script,omitempty"` SignalRest *NotifSignalRest `yaml:"signalrest,omitempty" json:"signalrest,omitempty"` Slack *NotifSlack `yaml:"slack,omitempty" json:"slack,omitempty"` Teams *NotifTeams `yaml:"teams,omitempty" json:"teams,omitempty"` Telegram *NotifTelegram `yaml:"telegram,omitempty" json:"telegram,omitempty"` Webhook *NotifWebhook `yaml:"webhook,omitempty" json:"webhook,omitempty"` }
Notif holds data necessary for notification configuration
func (*Notif) GetDefaults ¶
GetDefaults gets the default values
type NotifAmqp ¶
type NotifAmqp struct { Username string `yaml:"username,omitempty" json:"username,omitempty" validate:"omitempty"` UsernameFile string `yaml:"usernameFile,omitempty" json:"usernameFile,omitempty" validate:"omitempty,file"` Password string `yaml:"password,omitempty" json:"password,omitempty" validate:"omitempty"` PasswordFile string `yaml:"passwordFile,omitempty" json:"passwordFile,omitempty" validate:"omitempty,file"` Host string `yaml:"host,omitempty" json:"host,omitempty" validate:"required"` Port int `yaml:"port,omitempty" json:"port,omitempty" validate:"required,min=1"` Queue string `yaml:"queue,omitempty" json:"queue,omitempty" validate:"required"` Exchange string `yaml:"exchange,omitempty" json:"exchange,omitempty" validate:"omitempty"` }
NotifAmqp holds amqp notification configuration details
func (*NotifAmqp) GetDefaults ¶
GetDefaults gets the default values
func (*NotifAmqp) SetDefaults ¶
func (s *NotifAmqp) SetDefaults()
SetDefaults sets the default values
type NotifDiscord ¶ added in v4.1.0
type NotifDiscord struct { WebhookURL string `yaml:"webhookURL,omitempty" json:"webhookURL,omitempty" validate:"required"` Mentions []string `yaml:"mentions,omitempty" json:"mentions,omitempty"` RenderFields *bool `yaml:"renderFields,omitempty" json:"renderFields,omitempty" validate:"required"` Timeout *time.Duration `yaml:"timeout,omitempty" json:"timeout,omitempty" validate:"required"` TemplateBody string `yaml:"templateBody,omitempty" json:"templateBody,omitempty" validate:"required"` }
NotifDiscord holds Discord notification configuration details
func (*NotifDiscord) GetDefaults ¶ added in v4.1.0
func (s *NotifDiscord) GetDefaults() *NotifDiscord
GetDefaults gets the default values
func (*NotifDiscord) SetDefaults ¶ added in v4.1.0
func (s *NotifDiscord) SetDefaults()
SetDefaults sets the default values
type NotifEntries ¶ added in v4.6.0
type NotifEntries struct { Entries []NotifEntry CountNew int CountUpdate int CountUnchange int CountSkip int CountError int CountTotal int }
NotifEntries represents a list of notification entries
func (*NotifEntries) Add ¶ added in v4.6.0
func (s *NotifEntries) Add(entry NotifEntry)
Add adds a new notif entry
type NotifEntry ¶
type NotifEntry struct { Status ImageStatus `json:"status,omitempty"` Provider string `json:"provider,omitempty"` Image registry.Image `json:"image,omitempty"` Manifest registry.Manifest `json:"manifest,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` }
NotifEntry represents a notification entry
type NotifGotify ¶
type NotifGotify struct { Endpoint string `yaml:"endpoint,omitempty" json:"endpoint,omitempty" validate:"required"` Token string `yaml:"token,omitempty" json:"token,omitempty" validate:"omitempty"` TokenFile string `yaml:"tokenFile,omitempty" json:"tokenFile,omitempty" validate:"omitempty,file"` Priority int `yaml:"priority,omitempty" json:"priority,omitempty" validate:"omitempty,min=0"` Timeout *time.Duration `yaml:"timeout,omitempty" json:"timeout,omitempty" validate:"required"` TemplateTitle string `yaml:"templateTitle,omitempty" json:"templateTitle,omitempty" validate:"required"` TemplateBody string `yaml:"templateBody,omitempty" json:"templateBody,omitempty" validate:"required"` }
NotifGotify holds gotify notification configuration details
func (*NotifGotify) GetDefaults ¶
func (s *NotifGotify) GetDefaults() *NotifGotify
GetDefaults gets the default values
func (*NotifGotify) SetDefaults ¶
func (s *NotifGotify) SetDefaults()
SetDefaults sets the default values
type NotifMail ¶
type NotifMail struct { Host string `yaml:"host,omitempty" json:"host,omitempty" validate:"required"` Port int `yaml:"port,omitempty" json:"port,omitempty" validate:"required,min=1"` SSL *bool `yaml:"ssl,omitempty" json:"ssl,omitempty" validate:"required"` InsecureSkipVerify *bool `yaml:"insecureSkipVerify,omitempty" json:"insecureSkipVerify,omitempty" validate:"required"` LocalName string `yaml:"localName,omitempty" json:"localName,omitempty" validate:"omitempty"` Username string `yaml:"username,omitempty" json:"username,omitempty" validate:"omitempty"` UsernameFile string `yaml:"usernameFile,omitempty" json:"usernameFile,omitempty" validate:"omitempty,file"` Password string `yaml:"password,omitempty" json:"password,omitempty" validate:"omitempty"` PasswordFile string `yaml:"passwordFile,omitempty" json:"passwordFile,omitempty" validate:"omitempty,file"` From string `yaml:"from,omitempty" json:"from,omitempty" validate:"required,email"` To []string `yaml:"to,omitempty" json:"to,omitempty" validate:"required"` TemplateTitle string `yaml:"templateTitle,omitempty" json:"templateTitle,omitempty" validate:"required"` TemplateBody string `yaml:"templateBody,omitempty" json:"templateBody,omitempty" validate:"required"` }
NotifMail holds mail notification configuration details
func (*NotifMail) GetDefaults ¶
GetDefaults gets the default values
func (*NotifMail) SetDefaults ¶
func (s *NotifMail) SetDefaults()
SetDefaults sets the default values
type NotifMatrix ¶ added in v4.3.0
type NotifMatrix struct { HomeserverURL string `yaml:"homeserverURL,omitempty" json:"homeserverURL,omitempty" validate:"required"` User string `yaml:"user,omitempty" json:"user,omitempty" validate:"omitempty"` UserFile string `yaml:"userFile,omitempty" json:"userFile,omitempty" validate:"omitempty,file"` Password string `yaml:"password,omitempty" json:"password,omitempty" validate:"omitempty"` PasswordFile string `yaml:"passwordFile,omitempty" json:"passwordFile,omitempty" validate:"omitempty,file"` RoomID string `yaml:"roomID,omitempty" json:"roomID,omitempty" validate:"required"` MsgType NotifMatrixMsgType `yaml:"msgType,omitempty" json:"msgType,omitempty" validate:"required,oneof=notice text"` TemplateBody string `yaml:"templateBody,omitempty" json:"templateBody,omitempty" validate:"required"` }
NotifMatrix holds Matrix notification configuration details
func (*NotifMatrix) GetDefaults ¶ added in v4.3.0
func (s *NotifMatrix) GetDefaults() *NotifMatrix
GetDefaults gets the default values
func (*NotifMatrix) SetDefaults ¶ added in v4.3.0
func (s *NotifMatrix) SetDefaults()
SetDefaults sets the default values
type NotifMatrixMsgType ¶ added in v4.4.0
type NotifMatrixMsgType string
NotifMatrixMsgType holds message type
type NotifMqtt ¶ added in v4.7.0
type NotifMqtt struct { Scheme string `yaml:"scheme,omitempty" json:"scheme,omitempty" validate:"required,oneof=mqtt mqtts ws wss"` Host string `yaml:"host,omitempty" json:"host,omitempty" validate:"required"` Port int `yaml:"port,omitempty" json:"port,omitempty" validate:"required,min=1"` Username string `yaml:"username,omitempty" json:"username,omitempty" validate:"omitempty"` UsernameFile string `yaml:"usernameFile,omitempty" json:"usernameFile,omitempty" validate:"omitempty,file"` Password string `yaml:"password,omitempty" json:"password,omitempty" validate:"omitempty"` PasswordFile string `yaml:"passwordFile,omitempty" json:"passwordFile,omitempty" validate:"omitempty,file"` Client string `yaml:"client,omitempty" json:"client,omitempty" validate:"required"` Topic string `yaml:"topic,omitempty" json:"topic,omitempty" validate:"required"` QoS int `yaml:"qos,omitempty" json:"qos,omitempty" validate:"omitempty"` }
func (*NotifMqtt) GetDefaults ¶ added in v4.7.0
GetDefaults gets the default values
func (*NotifMqtt) SetDefaults ¶ added in v4.7.0
func (s *NotifMqtt) SetDefaults()
SetDefaults sets the default values
type NotifPushover ¶ added in v4.11.0
type NotifPushover struct { Token string `yaml:"token,omitempty" json:"token,omitempty" validate:"omitempty"` TokenFile string `yaml:"tokenFile,omitempty" json:"tokenFile,omitempty" validate:"omitempty,file"` Recipient string `yaml:"recipient,omitempty" json:"recipient,omitempty" validate:"omitempty"` RecipientFile string `yaml:"recipientFile,omitempty" json:"recipientFile,omitempty" validate:"omitempty,file"` Priority int `yaml:"priority,omitempty" json:"priority,omitempty" validate:"omitempty,min=-2,max=2"` TemplateTitle string `yaml:"templateTitle,omitempty" json:"templateTitle,omitempty" validate:"required"` TemplateBody string `yaml:"templateBody,omitempty" json:"templateBody,omitempty" validate:"required"` }
NotifPushover holds Pushover notification configuration details
func (*NotifPushover) GetDefaults ¶ added in v4.11.0
func (s *NotifPushover) GetDefaults() *NotifPushover
GetDefaults gets the default values
func (*NotifPushover) SetDefaults ¶ added in v4.11.0
func (s *NotifPushover) SetDefaults()
SetDefaults sets the default values
type NotifRocketChat ¶
type NotifRocketChat struct { Endpoint string `yaml:"endpoint,omitempty" json:"endpoint,omitempty" validate:"required"` Channel string `yaml:"channel,omitempty" json:"channel,omitempty" validate:"required"` UserID string `yaml:"userID,omitempty" json:"userID,omitempty" validate:"required"` Token string `yaml:"token,omitempty" json:"token,omitempty" validate:"omitempty"` TokenFile string `yaml:"tokenFile,omitempty" json:"tokenFile,omitempty" validate:"omitempty,file"` RenderAttachment *bool `yaml:"renderAttachment,omitempty" json:"renderAttachment,omitempty" validate:"required"` Timeout *time.Duration `yaml:"timeout,omitempty" json:"timeout,omitempty" validate:"required"` TemplateTitle string `yaml:"templateTitle,omitempty" json:"templateTitle,omitempty" validate:"required"` TemplateBody string `yaml:"templateBody,omitempty" json:"templateBody,omitempty" validate:"required"` }
NotifRocketChat holds Rocket.Chat notification configuration details
func (*NotifRocketChat) GetDefaults ¶
func (s *NotifRocketChat) GetDefaults() *NotifRocketChat
GetDefaults gets the default values
func (*NotifRocketChat) SetDefaults ¶
func (s *NotifRocketChat) SetDefaults()
SetDefaults sets the default values
type NotifScript ¶
type NotifScript struct { Cmd string `yaml:"cmd,omitempty" json:"cmd,omitempty" validate:"required"` Args []string `yaml:"args,omitempty" json:"args,omitempty" validate:"omitempty"` Dir string `yaml:"dir,omitempty" json:"dir,omitempty" validate:"omitempty,dir"` }
NotifScript holds script notification configuration details
func (*NotifScript) GetDefaults ¶
func (s *NotifScript) GetDefaults() *NotifScript
GetDefaults gets the default values
func (*NotifScript) SetDefaults ¶
func (s *NotifScript) SetDefaults()
SetDefaults sets the default values
type NotifSignalRest ¶ added in v4.23.0
type NotifSignalRest struct { Endpoint string `yaml:"endpoint,omitempty" json:"endpoint,omitempty" validate:"required"` Number string `yaml:"number,omitempty" json:"method,omitempty" validate:"required"` Recipients []string `yaml:"recipients,omitempty" json:"recipients,omitempty" validate:"omitempty"` Headers map[string]string `yaml:"headers,omitempty" json:"headers,omitempty" validate:"omitempty"` Timeout *time.Duration `yaml:"timeout,omitempty" json:"timeout,omitempty" validate:"required"` TemplateBody string `yaml:"templateBody,omitempty" json:"templateBody,omitempty" validate:"required"` }
NotifSignalRest holds SignalRest notification configuration details
func (*NotifSignalRest) GetDefaults ¶ added in v4.23.0
func (s *NotifSignalRest) GetDefaults() *NotifSignalRest
GetDefaults gets the default values
func (*NotifSignalRest) SetDefaults ¶ added in v4.23.0
func (s *NotifSignalRest) SetDefaults()
SetDefaults sets the default values
type NotifSlack ¶
type NotifSlack struct { WebhookURL string `yaml:"webhookURL,omitempty" json:"webhookURL,omitempty" validate:"required"` RenderFields *bool `yaml:"renderFields,omitempty" json:"renderFields,omitempty" validate:"required"` TemplateBody string `yaml:"templateBody,omitempty" json:"templateBody,omitempty" validate:"required"` }
NotifSlack holds slack notification configuration details
func (*NotifSlack) GetDefaults ¶
func (s *NotifSlack) GetDefaults() *NotifSlack
GetDefaults gets the default values
func (*NotifSlack) SetDefaults ¶
func (s *NotifSlack) SetDefaults()
SetDefaults sets the default values
type NotifTeams ¶
type NotifTeams struct { WebhookURL string `yaml:"webhookURL,omitempty" json:"webhookURL,omitempty" validate:"required"` RenderFacts *bool `yaml:"renderFacts,omitempty" json:"renderFacts,omitempty" validate:"required"` TemplateBody string `yaml:"templateBody,omitempty" json:"templateBody,omitempty" validate:"required"` }
NotifTeams holds Teams notification configuration details
func (*NotifTeams) GetDefaults ¶
func (s *NotifTeams) GetDefaults() *NotifTeams
GetDefaults gets the default values
func (*NotifTeams) SetDefaults ¶
func (s *NotifTeams) SetDefaults()
SetDefaults sets the default values
type NotifTelegram ¶
type NotifTelegram struct { Token string `yaml:"token,omitempty" json:"token,omitempty" validate:"omitempty"` TokenFile string `yaml:"tokenFile,omitempty" json:"tokenFile,omitempty" validate:"omitempty,file"` ChatIDs []int64 `yaml:"chatIDs,omitempty" json:"chatIDs,omitempty" validate:"omitempty"` ChatIDsFile string `yaml:"chatIDsFile,omitempty" json:"chatIDsFile,omitempty" validate:"omitempty,file"` TemplateBody string `yaml:"templateBody,omitempty" json:"templateBody,omitempty" validate:"required"` }
NotifTelegram holds Telegram notification configuration details
func (*NotifTelegram) GetDefaults ¶
func (s *NotifTelegram) GetDefaults() *NotifTelegram
GetDefaults gets the default values
func (*NotifTelegram) SetDefaults ¶
func (s *NotifTelegram) SetDefaults()
SetDefaults sets the default values
type NotifWebhook ¶
type NotifWebhook struct { Endpoint string `yaml:"endpoint,omitempty" json:"endpoint,omitempty" validate:"required"` Method string `yaml:"method,omitempty" json:"method,omitempty" validate:"required"` Headers map[string]string `yaml:"headers,omitempty" json:"headers,omitempty" validate:"omitempty"` Timeout *time.Duration `yaml:"timeout,omitempty" json:"timeout,omitempty" validate:"required"` }
NotifWebhook holds webhook notification configuration details
func (*NotifWebhook) GetDefaults ¶
func (s *NotifWebhook) GetDefaults() *NotifWebhook
GetDefaults gets the default values
func (*NotifWebhook) SetDefaults ¶
func (s *NotifWebhook) SetDefaults()
SetDefaults sets the default values
type NotifyOn ¶ added in v4.20.0
type NotifyOn string
NotifyOn holds notify status type
type PrdDocker ¶
type PrdDocker struct { Endpoint string `yaml:"endpoint" json:"endpoint,omitempty" validate:"omitempty"` APIVersion string `yaml:"apiVersion" json:"apiVersion,omitempty" validate:"omitempty"` TLSCertsPath string `yaml:"tlsCertsPath" json:"tlsCertsPath,omitempty" validate:"omitempty"` TLSVerify *bool `yaml:"tlsVerify" json:"tlsVerify,omitempty" validate:"required"` WatchByDefault *bool `yaml:"watchByDefault" json:"watchByDefault,omitempty" validate:"required"` WatchStopped *bool `yaml:"watchStopped" json:"watchStopped,omitempty" validate:"required"` }
PrdDocker holds docker provider configuration
func (*PrdDocker) GetDefaults ¶
GetDefaults gets the default values
func (*PrdDocker) SetDefaults ¶
func (s *PrdDocker) SetDefaults()
SetDefaults sets the default values
type PrdDockerfile ¶ added in v4.16.0
type PrdDockerfile struct {
Patterns []string `yaml:"patterns,omitempty" json:"patterns,omitempty" validate:"omitempty"`
}
PrdDockerfile holds dockerfile provider configuration
func (*PrdDockerfile) GetDefaults ¶ added in v4.16.0
func (s *PrdDockerfile) GetDefaults() *PrdDockerfile
GetDefaults gets the default values
func (*PrdDockerfile) SetDefaults ¶ added in v4.16.0
func (s *PrdDockerfile) SetDefaults()
SetDefaults sets the default values
type PrdFile ¶
type PrdFile struct { Filename string `yaml:"filename,omitempty" json:"filename,omitempty" validate:"omitempty,file"` Directory string `yaml:"directory,omitempty" json:"directory,omitempty" validate:"omitempty,dir"` }
PrdFile holds file provider configuration
func (*PrdFile) GetDefaults ¶
GetDefaults gets the default values
type PrdKubernetes ¶
type PrdKubernetes struct { Endpoint string `yaml:"endpoint" json:"endpoint,omitempty" validate:"omitempty"` Token string `yaml:"token,omitempty" json:"token,omitempty" validate:"omitempty"` TokenFile string `yaml:"tokenFile,omitempty" json:"tokenFile,omitempty" validate:"omitempty,file"` CertAuthFilePath string `yaml:"certAuthFilePath" json:"certAuthFilePath,omitempty" validate:"omitempty"` TLSInsecure *bool `yaml:"tlsInsecure" json:"tlsInsecure,omitempty" validate:"required"` Namespaces []string `yaml:"namespaces" json:"namespaces,omitempty" validate:"omitempty"` WatchByDefault *bool `yaml:"watchByDefault" json:"watchByDefault,omitempty" validate:"required"` }
PrdKubernetes holds kubernetes provider configuration
func (*PrdKubernetes) GetDefaults ¶
func (s *PrdKubernetes) GetDefaults() *PrdKubernetes
GetDefaults gets the default values
func (*PrdKubernetes) SetDefaults ¶
func (s *PrdKubernetes) SetDefaults()
SetDefaults sets the default values
type PrdNomad ¶ added in v4.23.0
type PrdNomad struct { Address string `yaml:"address" json:"address,omitempty" validate:"omitempty"` Region string `yaml:"region,omitempty" json:"region,omitempty" validate:"omitempty"` SecretID string `yaml:"secretID,omitempty" json:"secretID,omitempty" validate:"omitempty"` Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty" validate:"omitempty"` TLSInsecure *bool `yaml:"tlsInsecure" json:"tlsInsecure,omitempty" validate:"required"` WatchByDefault *bool `yaml:"watchByDefault" json:"watchByDefault,omitempty" validate:"required"` }
PrdNomad holds nomad provider configuration
func (*PrdNomad) GetDefaults ¶ added in v4.23.0
GetDefaults gets the default values
func (*PrdNomad) SetDefaults ¶ added in v4.23.0
func (s *PrdNomad) SetDefaults()
SetDefaults sets the default values
type PrdSwarm ¶
type PrdSwarm struct { Endpoint string `yaml:"endpoint,omitempty" json:"endpoint,omitempty" validate:"omitempty"` APIVersion string `yaml:"apiVersion,omitempty" json:"apiVersion,omitempty" validate:"omitempty"` TLSCertsPath string `yaml:"tlsCertsPath,omitempty" json:"tlsCertsPath,omitempty" validate:"omitempty"` TLSVerify *bool `yaml:"tlsVerify,omitempty" json:"tlsVerify,omitempty" validate:"required"` WatchByDefault *bool `yaml:"watchByDefault,omitempty" json:"watchByDefault,omitempty" validate:"required"` }
PrdSwarm holds swarm provider configuration
func (*PrdSwarm) GetDefaults ¶
GetDefaults gets the default values
type Providers ¶
type Providers struct { Docker *PrdDocker `yaml:"docker,omitempty" json:"docker,omitempty" label:"allowEmpty" file:"allowEmpty"` Swarm *PrdSwarm `yaml:"swarm,omitempty" json:"swarm,omitempty" label:"allowEmpty" file:"allowEmpty"` Kubernetes *PrdKubernetes `yaml:"kubernetes,omitempty" json:"kubernetes,omitempty" label:"allowEmpty" file:"allowEmpty"` File *PrdFile `yaml:"file,omitempty" json:"file,omitempty"` Dockerfile *PrdDockerfile `yaml:"dockerfile,omitempty" json:"dockerfile,omitempty"` Nomad *PrdNomad `yaml:"nomad,omitempty" json:"nomad,omitempty" label:"allowEmpty" file:"allowEmpty"` }
Providers represents a provider configuration
func (*Providers) GetDefaults ¶
GetDefaults gets the default values
func (*Providers) SetDefaults ¶
func (s *Providers) SetDefaults()
SetDefaults sets the default values
type RegOpt ¶
type RegOpt struct { Name string `yaml:"name,omitempty" json:"name,omitempty" validate:"required"` Selector RegOptSelector `yaml:"selector,omitempty" json:"selector,omitempty" validate:"required,oneof=name image"` Username string `yaml:"username,omitempty" json:"username,omitempty" validate:"omitempty"` UsernameFile string `yaml:"usernameFile,omitempty" json:"usernameFile,omitempty" validate:"omitempty,file"` Password string `yaml:"password,omitempty" json:"password,omitempty" validate:"omitempty"` PasswordFile string `yaml:"passwordFile,omitempty" json:"passwordFile,omitempty" validate:"omitempty,file"` InsecureTLS *bool `yaml:"insecureTLS,omitempty" json:"insecureTLS,omitempty" validate:"required"` Timeout *time.Duration `yaml:"timeout,omitempty" json:"timeout,omitempty"` }
RegOpt holds registry options configuration
func (*RegOpt) GetDefaults ¶
GetDefaults gets the default values
type Watch ¶
type Watch struct { Workers int `yaml:"workers,omitempty" json:"workers,omitempty" validate:"required,min=1"` Schedule string `yaml:"schedule,omitempty" json:"schedule,omitempty"` Jitter *time.Duration `yaml:"jitter,omitempty" json:"jitter,omitempty" validate:"required"` FirstCheckNotif *bool `yaml:"firstCheckNotif,omitempty" json:"firstCheckNotif,omitempty" validate:"required"` CompareDigest *bool `yaml:"compareDigest,omitempty" json:"compareDigest,omitempty" validate:"required"` Healthchecks *Healthchecks `yaml:"healthchecks,omitempty" json:"healthchecks,omitempty"` }
Watch holds data necessary for watch configuration
func (*Watch) GetDefaults ¶
GetDefaults gets the default values
Source Files ¶
- db.go
- image.go
- job.go
- meta.go
- notif.go
- notif_amqp.go
- notif_discord.go
- notif_gotify.go
- notif_mail.go
- notif_matrix.go
- notif_mqtt.go
- notif_pushover.go
- notif_rocketchat.go
- notif_script.go
- notif_signalrest.go
- notif_slack.go
- notif_teams.go
- notif_telegram.go
- notif_webhook.go
- provider_docker.go
- provider_dockerfile.go
- provider_file.go
- provider_kubernetes.go
- provider_nomad.go
- provider_swarm.go
- providers.go
- regopts.go
- watch.go
- watch_healthchecks.go