config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: 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 Config

type Config struct {
	AccessToken  string             `yaml:"access_token"`
	URL          string             `yaml:"url"`
	Repositories []RepositoryConfig `yaml:"repositories"`
}

func Parse

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

type FilterConfig

type FilterConfig struct {
	Include string `yaml:"include"`
	Exclude string `yaml:"exclude"`
	Keep    int    `yaml:"keep"`
	Age     int    `yaml:"age"`
}

type RepositoryConfig

type RepositoryConfig struct {
	Project int          `yaml:"project"`
	Image   string       `yaml:"image"`
	Filter  FilterConfig `yaml:"filter"`
}

Jump to

Keyboard shortcuts

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