types

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BranchOutput

type BranchOutput struct {
	Name string `json:"name"`
	Head string `json:"head"`
}

type Collector

type Collector struct {
	Name       string   `yaml:"name"`
	Path       string   `yaml:"path"`
	Parser     string   `yaml:"parser"`
	Collectors []string `yaml:"collectors"`
}

Collector represents a single collect definition

func (Collector) Equals

func (c Collector) Equals(other Collector) bool

func (*Collector) Merge

func (c *Collector) Merge(other Collector)

type Output

type Output struct {
	Recommendations []*ProactionRecommendation `json:"recommendations,omitempty"`
	Repos           []*RepoOutput              `json:"repos,omitempty"`
}

type ProactionRecommendation

type ProactionRecommendation struct {
	Owner   string   `json:"owner"`
	Repo    string   `json:"repo"`
	RefType string   `json:"refType"`
	Refs    []string `json:"refs"`
}

type RepoOutput

type RepoOutput struct {
	WorkflowInfo  `json:",inline"`
	ID            int64    `json:"id"`
	Owner         string   `json:"owner"`
	Repo          string   `json:"repo"`
	IsPublic      bool     `json:"isPublic"`
	IsArchived    bool     `json:"isArchived"`
	DefaultBranch string   `json:"defaultBranch"`
	IsFork        bool     `json:"isFork"`
	Forks         []string `json:"forks,omitempty"`
	Parent        string   `json:"parent,omitempty"`
	Head          string   `json:"head"`

	// included when refInfo
	Ref     string `json:"ref"`
	RefType string `json:"refType"`

	// included in branches
	Branches []BranchOutput `json:"branches,omitempty"`

	// included in tags
	Tags []TagOutput `json:"tags,omitempty"`

	// included in commits
	Commits []string `json:"commits,omitempty"`
}

type TagOutput

type TagOutput struct {
	Name string `json:"name"`
	Head string `json:"head"`
}

type WorkflowInfo

type WorkflowInfo struct {
	Workflow    string `json:"workflow"`
	LineNumber  int    `json:"lineNumber"`
	LineContent string `json:"lineContent"`
}

Jump to

Keyboard shortcuts

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