config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfigFilePaths = []string{".octocov.yml", "octocov.yml"}

Functions

This section is empty.

Types

type Config

type Config struct {
	Repository string          `yaml:"repository"`
	Coverage   *ConfigCoverage `yaml:"coverage"`
	// CodeToTestRatio *ConfigCodeToTestRatio `yaml:"codeToTestRatio,omitempty"`
	Datastore *ConfigDatastore `yaml:"datastore,omitempty"`
	Central   *ConfigCentral   `yaml:"central,omitempty"`
	// contains filtered or unexported fields
}

func New

func New() *Config

func (*Config) Accepptable

func (c *Config) Accepptable(r *report.Report) error

func (*Config) BadgeConfigReady

func (c *Config) BadgeConfigReady() bool

func (*Config) Build

func (c *Config) Build()

func (*Config) BuildCentralConfig added in v0.2.0

func (c *Config) BuildCentralConfig() error

func (*Config) BuildDatastoreConfig

func (c *Config) BuildDatastoreConfig() error

func (*Config) CentralConfigReady added in v0.2.0

func (c *Config) CentralConfigReady() bool

func (*Config) CoverageColor added in v0.2.0

func (c *Config) CoverageColor(cover float64) string

func (*Config) DatastoreConfigReady

func (c *Config) DatastoreConfigReady() bool

func (*Config) Getwd added in v0.5.0

func (c *Config) Getwd() string

func (*Config) Load

func (c *Config) Load(path string) error

func (*Config) Loaded added in v0.2.0

func (c *Config) Loaded() bool

func (*Config) Root added in v0.2.0

func (c *Config) Root() string

func (*Config) Setwd added in v0.5.0

func (c *Config) Setwd(path string)

type ConfigCentral added in v0.2.0

type ConfigCentral struct {
	Enable  bool   `yaml:"enable"`
	Reports string `yaml:"reports"`
	Badges  string `yaml:"badges"`
	Root    string `yaml:"root"`
}

type ConfigCoverage

type ConfigCoverage struct {
	Path       string              `yaml:"path,omitempty"`
	Badge      ConfigCoverageBadge `yaml:"badge,omitempty"`
	Acceptable string              `yaml:"acceptable,omitempty"`
}

type ConfigCoverageBadge added in v0.3.0

type ConfigCoverageBadge struct {
	Path string `yaml:"path,omitempty"`
}

type ConfigDatastore

type ConfigDatastore struct {
	If     string                 `yaml:"if,omitempty"`
	Github *ConfigDatastoreGithub `yaml:"github,omitempty"`
}

type ConfigDatastoreGithub

type ConfigDatastoreGithub struct {
	Repository string `yaml:"repository"`
	Branch     string `yaml:"branch"`
	Path       string `yaml:"path"`
}

Jump to

Keyboard shortcuts

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