commonrepo

package
v3.1.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterConfig

type FilterConfig struct {
	OnlyIncludeNames []string `json:"repos"`
	Exclusions       []string `json:"exclusions"`
	Inclusions       []string `json:"inclusions"`
	StopAfterN       int      `json:"stop_after_n"`
}

FilterConfig specifies the repos to use. JSON tags are used in config definitions.

type Repo

type Repo struct {
	ID            string
	NameWithOwner string
	// DefaultBranch of the repo, could be empty if no commits yet. Used for getting commit_users
	DefaultBranch string
}

func Filter

func Filter(logger hclog.Logger, repos []Repo, config FilterConfig) []Repo

func ReposAllSlice

func ReposAllSlice(reposAll ReposAll) (sl []Repo, rerr error)

func (Repo) GetID

func (s Repo) GetID() string

func (Repo) GetReadableID

func (s Repo) GetReadableID() string

type ReposAll

type ReposAll func(chan []Repo) error

Jump to

Keyboard shortcuts

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