config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apply

type Apply struct {
	Template string `yaml:"template"`
}

Apply is a terraform apply config

type Config

type Config struct {
	CI        string    `yaml:"ci"`
	Notifier  Notifier  `yaml:"notifier"`
	Terraform Terraform `yaml:"terraform"`
	// contains filtered or unexported fields
}

Config is for tfnotify config structure

func (*Config) Find

func (cfg *Config) Find(file string) (string, error)

Find returns config path

func (*Config) GetNotifierType

func (cfg *Config) GetNotifierType() string

GetNotifierType return notifier type described in Config

func (*Config) LoadFile

func (cfg *Config) LoadFile(path string) error

LoadFile binds the config file to Config structure

func (*Config) Validation

func (cfg *Config) Validation() error

Validation validates config file

type Default

type Default struct {
	Template string `yaml:"template"`
}

Default is a default setting for terraform commands

type Fmt

type Fmt struct {
	Template string `yaml:"template"`
}

Fmt is a terraform fmt config

type GithubNotifier

type GithubNotifier struct {
	Token      string     `yaml:"token"`
	Repository Repository `yaml:"repository"`
}

GithubNotifier is a notifier for GitHub

type Notifier

type Notifier struct {
	Github GithubNotifier `yaml:"github"`
	Slack  SlackNotifier  `yaml:"slack"`
}

Notifier is a notification notifier

type Plan

type Plan struct {
	Template string `yaml:"template"`
}

Plan is a terraform plan config

type Repository

type Repository struct {
	Owner string `yaml:"owner"`
	Name  string `yaml:"name"`
}

Repository represents a GitHub repository

type SlackNotifier

type SlackNotifier struct {
	Token   string `yaml:"token"`
	Channel string `yaml:"channel"`
	Bot     string `yaml:"bot"`
}

SlackNotifier is a notifier for Slack

type Terraform

type Terraform struct {
	Default Default `yaml:"default"`
	Fmt     Fmt     `yaml:"fmt"`
	Plan    Plan    `yaml:"plan"`
	Apply   Apply   `yaml:"apply"`
}

Terraform represents terraform configurations

Jump to

Keyboard shortcuts

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