v1

package
v0.7.15 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: MPL-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongVersion = errors.New("config file version is not 1")
)

Functions

This section is empty.

Types

type AnalyzeProperties

type AnalyzeProperties struct {
	Modules []ModuleProperties `yaml:"modules,omitempty"`
}

type CLIProperties

type CLIProperties struct {
	// Upload configuration.
	APIKey         string `yaml:"api_key,omitempty"`
	Server         string `yaml:"server,omitempty"`
	Fetcher        string `yaml:"fetcher,omitempty"` // Defaults to custom
	Project        string `yaml:"project,omitempty"`
	Title          string `yaml:"title,omitempty"`
	Revision       string `yaml:"revision,omitempty"`
	Branch         string `yaml:"branch,omitempty"`           // Only used with custom fetcher
	ProjectURL     string `yaml:"project_url,omitempty"`      // Only used with custom fetcher
	JIRAProjectKey string `yaml:"jira_project_key,omitempty"` // Only used with custom fetcher
	Link           string `yaml:"link,omitempty"`
	Team           string `yaml:"team,omitempty"`
}

type File

type File struct {
	Version int `yaml:"version"`

	CLI     CLIProperties
	Analyze AnalyzeProperties
	// contains filtered or unexported fields
}

func New

func New(data []byte) (File, error)

func (File) APIKey

func (file File) APIKey() string

func (File) Branch

func (file File) Branch() string

func (File) Fetcher

func (file File) Fetcher() string

func (File) JIRAProjectKey added in v0.7.6

func (file File) JIRAProjectKey() string
func (file File) Link() string

func (File) Modules

func (file File) Modules() []module.Module

func (File) Project

func (file File) Project() string

func (File) ProjectURL added in v0.7.6

func (file File) ProjectURL() string

func (File) Revision

func (file File) Revision() string

func (File) Server

func (file File) Server() string

func (File) Team added in v0.7.9

func (file File) Team() string

func (File) Title

func (file File) Title() string

type ModuleProperties

type ModuleProperties struct {
	Name        string                 `yaml:"name"`
	Type        string                 `yaml:"type"`
	Ignore      bool                   `yaml:"ignore,omitempty"`
	BuildTarget string                 `yaml:"target,omitempty"`
	Path        string                 `yaml:"path,omitempty"`
	Options     map[string]interface{} `yaml:"options,omitempty"`
}

Jump to

Keyboard shortcuts

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