result

package
v0.0.0-...-20ada07 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Name string `json:"name"`
	Link string `json:"link"`
}

type Commit

type Commit struct {
	Text      string           `json:"Text"`
	SHA       string           `json:"SHA"`
	Author    Author           `json:"Author"`
	Timestamp github.Timestamp `json:"Timestamp"`
	Link      string           `json:"Link"`
}

type Commits

type Commits struct {
	Link    string   `json:"Link"`
	Count   int      `json:"Count"`
	Commits []Commit `json:"Commits"`
}

type Environment

type Environment struct {
	Name      string `json:"Name"`
	Link      string `json:"Link"`
	Version   string `json:"Version"`
	IsRelease bool   `json:"IsRelease"`
	IsCurrent bool   `json:"IsCurrent"`
}

type EnvironmentDescription

type EnvironmentDescription struct {
	Name string `json:"Name"`
	Link string `json:"Link"`
}

type Organization

type Organization struct {
	Title                   string                   `json:"Title"`
	Repositories            []Repository             `json:"Repositories"`
	EnvironmentDescriptions []EnvironmentDescription `json:"EnvironmentDescription"`
	LastUpdated             string                   `json:"LastUpdated"`
}

func (*Organization) CreateEnvironmentDescriptions

func (organization *Organization) CreateEnvironmentDescriptions(ctx context.Context, c *config.Config) error

func (*Organization) IterateRepositories

func (organization *Organization) IterateRepositories(ctx context.Context, gh *github.Client, config config.Config) error

func (*Organization) RenderJson

func (organization *Organization) RenderJson(ctx context.Context) (result []byte, err error)

func (*Organization) RenderMarkdown

func (organization *Organization) RenderMarkdown(ctx context.Context, templateContent string) (string, error)

type PullRequest

type PullRequest struct {
	Title string `json:"Title"`
	Link  string `json:"Link"`
}

type PullRequests

type PullRequests struct {
	Link         string        `json:"Link"`
	Count        int           `json:"Count"`
	PullRequests []PullRequest `json:"PullRequests"`
}

type Release

type Release struct {
	Tag       string           `json:"Tag"`
	SHA       string           `json:"SHA"`
	Title     string           `json:"Title"`
	Timestamp github.Timestamp `json:"Timestamp"`
	Link      string           `json:"Link"`
}

type Repository

type Repository struct {
	Name          string        `json:"Name"`
	Error         string        `json:"Error"`
	Environments  []Environment `json:"Environments"`
	LatestRelease Release       `json:"LatestRelease"`
	Releases      []Release     `json:"Releases"`
	PullRequests  PullRequests  `json:"PullRequests"`
	Link          string        `json:"Link"`
	Commits       Commits       `json:"Commits"`
	DefaultBranch string        `json:"DefaultBranch"`
	Tags          []Tag         `json:"Tags"`
	Workflows     Workflows     `json:"Workflows"`
}

func (*Repository) HasTag

func (repository *Repository) HasTag(tagName string) bool

func (*Repository) IterateEnvironments

func (repository *Repository) IterateEnvironments(ctx context.Context, gh *github.Client, config config.Config) (err error)

type Tag

type Tag struct {
	Name string `json:"Name"`
	SHA  string `json:"SHA"`
}

type Worfklow

type Worfklow struct {
	Name      string           `json:"Name"`
	Timestamp github.Timestamp `json:"Timestamp"`
	Link      string           `json:"Link"`
}

type Workflows

type Workflows struct {
	Link      string     `json:"Link"`
	Count     int        `json:"Count"`
	Workflows []Worfklow `json:"Workflows"`
}

Jump to

Keyboard shortcuts

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