config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrConfigFileCantBeRead when config file cannot be read.
	ErrConfigFileCantBeRead = errors.New("config file can't be read")
	// ErrConfigFileHaveInvalidFormat when config file has invalid format.
	ErrConfigFileHaveInvalidFormat = errors.New("config file have invalid format")
)

Functions

This section is empty.

Types

type Branches

type Branches struct {
	Main        string `valid:"required"`
	ReleaseNext string `valid:"required"`
	SynchCI     string `valid:"required"`
	ReleaseTemplates
	Searches
}

Branches holds configuration for branches.

type Config

type Config struct {
	Upstream                   string `valid:"required"`
	Downstream                 string `valid:"required"`
	SynchronizeTags            bool
	DryRun                     bool
	GithubWorkflowsRemovalGlob string `valid:"required"`
	Branches
}

Config for a deviate to operate.

func New

func New(
	project Project,
	log log.Logger,
	informer git.RemoteURLInformer,
) (Config, error)

New creates a new default configuration.

type Project

type Project struct {
	Path       string
	ConfigPath string
}

Project information.

type ReleaseTemplates

type ReleaseTemplates struct {
	Upstream   string `valid:"required"`
	Downstream string `valid:"required"`
}

ReleaseTemplates contains templates for release names.

type Searches

type Searches struct {
	UpstreamReleases   string `valid:"required"`
	DownstreamReleases string `valid:"required"`
}

Searches contains regular expressions used to search for branches.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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