model

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2019 License: MIT Imports: 2 Imported by: 0

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 App

type App struct {
	ID      string
	Name    string
	Desc    string
	URL     string
	Author  string
	Version string
}

App holds application details

type Db

type Db struct {
	Path string `yaml:"path,omitempty"`
}

Db holds data necessary for database configuration

type Flags

type Flags struct {
	Cfgfile   string
	Timezone  string
	LogLevel  string
	LogJson   bool
	LogCaller bool
}

Flags holds flags from command line

type Image added in v1.0.0

type Image struct {
	Name        string   `yaml:"name,omitempty" json:",omitempty"`
	Os          string   `yaml:"os,omitempty" json:",omitempty"`
	Arch        string   `yaml:"arch,omitempty" json:",omitempty"`
	RegOptsID   string   `yaml:"regopts_id,omitempty" json:",omitempty"`
	WatchRepo   bool     `yaml:"watch_repo,omitempty" json:",omitempty"`
	MaxTags     int      `yaml:"max_tags,omitempty" json:",omitempty"`
	IncludeTags []string `yaml:"include_tags,omitempty" json:",omitempty"`
	ExcludeTags []string `yaml:"exclude_tags,omitempty" json:",omitempty"`
	RegOpts     RegOpts  `yaml:"-" json:"-"`
}

Image holds image configuration

type ImageStatus

type ImageStatus string

ImageStatus holds Docker image status analysis

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 Notif

type Notif struct {
	Mail    Mail    `yaml:"mail,omitempty"`
	Webhook Webhook `yaml:"webhook,omitempty"`
}

Notif holds data necessary for notification configuration

type NotifEntry

type NotifEntry struct {
	Status   ImageStatus     `json:"status,omitempty"`
	Image    registry.Image  `json:"image,omitempty"`
	Manifest docker.Manifest `json:"manifest,omitempty"`
}

NotifEntry represents a notification entry

type RegOpts added in v1.0.0

type RegOpts struct {
	Username    string `yaml:"username,omitempty" json:",omitempty"`
	Password    string `yaml:"password,omitempty" json:",omitempty"`
	InsecureTLS bool   `yaml:"insecure_tls,omitempty" json:",omitempty"`
	Timeout     int    `yaml:"timeout,omitempty" json:",omitempty"`
}

RegOpts holds registry options configuration

type Watch

type Watch struct {
	Workers  int    `yaml:"workers,omitempty"`
	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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL