model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: MIT Imports: 1 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
	Populate bool
	Timezone string
	LogLevel string
	LogJson  bool
	RunOnce  bool
	Docker   bool
}

Flags holds flags from command line

type ImageStatus

type ImageStatus string

ImageStatus holds Docker image status analysis

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 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"`
	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

Jump to

Keyboard shortcuts

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