config

package
v0.0.0-...-9336d8b Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2016 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Targets      []Target     `yaml:"targets"`
	Project      Project      `yaml:"project"`
	Notification Notification `yaml:"notification"`
	Registry     string       `yaml:"registry"`
}

Config ...

func Init

func Init(configFile string) (conf *Config, err error)

Init ...

type Database

type Database struct {
	Name     string `yaml:"name"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Seed     string `yaml:"seed"`
}

Database ...

type Email

type Email struct {
	Enable     bool     `yaml:"enable"`
	SMTP       SMTP     `yaml:"smtp"`
	Recipients []string `yaml:"recipients"`
}

Email ...

type Notification

type Notification struct {
	Slack Slack `yaml:"slack"`
	Email Email `yaml:"email"`
}

Notification ...

type Project

type Project struct {
	Name     string   `yaml:"name"`
	Database Database `yaml:"database"`
	Port     int      `yaml:"port"`
}

Project ...

type SMTP

type SMTP struct {
	Domain         string `yaml:"domain"`
	Host           string `yaml:"host"`
	Port           int    `yaml:"port"`
	User           string `yaml:"user"`
	Pass           string `yaml:"pass"`
	StartTLS       bool   `yaml:"starttls"`
	Authentication string `yaml:"authentication"`
	FromName       string `yaml:"from_name"`
	FromEmail      string `yaml:"from_email"`
}

SMTP ...

type Slack

type Slack struct {
	Enable   bool     `yaml:"enable"`
	Channels []string `yaml:"channels"`
}

Slack ...

type Target

type Target struct {
	Host     string   `yaml:"host"`
	User     string   `yaml:"user"`
	Port     int      `yaml:"port"`
	Branches []string `yaml:"branches"`
}

Target is a configuration to define some information which is necessary to setup server

Jump to

Keyboard shortcuts

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