v1

package
v0.7.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 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
}

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) Modules

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

func (File) Project

func (file File) Project() string

func (File) Revision

func (file File) Revision() string

func (File) Server

func (file File) Server() string

func (File) Title

func (file File) Title() string

type ModuleProperties

type ModuleProperties struct {
	Name        string                 `yaml:"name"`
	Ignore      bool                   `yaml:"ignore,omitempty"`
	Type        string                 `yaml:"type"`
	BuildTarget string                 `yaml:"target,omitempty"`
	Path        string                 `yaml:"path"`
	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