config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: MIT Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Templates            []Template             `json:"templates"`
	Variables            map[string]interface{} `json:"variables"`
	ConfigURL            string                 `split_words:"true"`
	ConfluenceURL        string                 `split_words:"true"`
	ConfluenceAuthMethod string                 `split_words:"true"`
	ConfluenceBasicAuth  []string               `split_words:"true"`
	Confluence           Confluence             `json:"confluence"`
}

Config represents the butler config

func ParseConfig

func ParseConfig(filename string) *Config

ParseConfig returns the yaml parsed config

func ParseConfigFile added in v0.2.0

func ParseConfigFile(filename string) (*Config, error)

type Confluence added in v0.0.34

type Confluence struct {
	Templates []ConfluenceTemplate `json:"templates"`
}

type ConfluencePage added in v0.0.34

type ConfluencePage struct {
	Name     string           `json:"name"`
	Children []ConfluencePage `json:"children"`
}

type ConfluenceTemplate added in v0.0.34

type ConfluenceTemplate struct {
	Name  string           `json:"name"`
	Pages []ConfluencePage `json:"pages"`
}

type Template

type Template struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

Template represents the project template with informations about location and name

Jump to

Keyboard shortcuts

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