config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	URL      string `yaml:"url"`
	Schedule string `yaml:"schedule"`
	OpenPR   OpenPR `yaml:"open_pull_request"`
}

type Config

type Config struct {
	Backends []Backend `yaml:"backends"`
}

func Parse

func Parse(path string) (*Config, error)

Parse a yaml given file into a *config.Config struct.

type OpenPR

type OpenPR struct {
	Repo         string `yaml:"repository"`
	TargetFile   string `yaml:"target_file"`
	TargetBranch string `yaml:"target_branch"`
}

Jump to

Keyboard shortcuts

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