config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoConfiguration

type RepoConfiguration struct {
	Repositories []*Repository `json:"repositories"`
}

RepoConfiguration is a slice of Repository values.

func Parse

func Parse(in io.Reader) (*RepoConfiguration, error)

Parse reads and returns a configuration from Reader.

func (RepoConfiguration) Find

func (c RepoConfiguration) Find(name string) *Repository

Find looks up the repository by name.

type Repository

type Repository struct {
	Name               string `json:"name"`
	SourceRepo         string `json:"sourceRepo"`
	SourceBranch       string `json:"sourceBranch"`
	FilePath           string `json:"filePath"`
	UpdateKey          string `json:"updateKey"`
	BranchGenerateName string `json:"branchGenerateName"`
	TagMatch           string `json:"tagMatch"`
}

Repository is the items that are required to update a specific file in a repo.

Jump to

Keyboard shortcuts

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