octoreports

package
v0.0.0-...-40bb5b7 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCollaboratorReport

func GenerateCollaboratorReport(orgName string, client *githubv4.Client) error

func GenerateEnterpriseMembershipReport

func GenerateEnterpriseMembershipReport(enterpriseSlug string, client *githubv4.Client) error

func GenerateOrgMembershipReport

func GenerateOrgMembershipReport(enterpriseSlug string, client *githubv4.Client) error

func GenerateOrgPackageReport

func GenerateOrgPackageReport(orgName string, client *githubv4.Client)

func GenerateRepoReport

func GenerateRepoReport(enterpriseSlug string, client *githubv4.Client) error

func GenerateTeamReport

func GenerateTeamReport(enterpriseSlug string, client *githubv4.Client) error

func NewV3Client

func NewV3Client(token string) *github.Client

func NewV4Client

func NewV4Client(url, token string) *githubv4.Client

func RequestCode

func RequestCode(url, clientID string) (string, error)

Types

type Collaborator

type Collaborator struct {
	Permission string
	Login      string
	Name       string
	Email      string
	DatabaseID uint64
}

type Member

type Member struct {
	Id    string
	Name  string
	Login string
	Role  string
}

type Org

type Org struct {
	Login githubv4.String
	ID    githubv4.String
}

type Package

type Package struct {
	Name       githubv4.String
	ID         githubv4.String
	Repository struct {
		Name githubv4.String
	}
}

type RateLimit

type RateLimit struct {
	Cost      githubv4.Int
	Limit     githubv4.Int
	NodeCount githubv4.Int
	Remaining githubv4.Int
	ResetAt   githubv4.DateTime
	Used      githubv4.Int
}

type Repo

type Repo struct {
	Name       string
	Visibility string
	IsArchived bool
	IsFork     bool
	ID         string
	PushedAt   time.Time
	CreatedAt  time.Time
	Owner      string
	Topics     []string
	Teams      []Team
}

type Team

type Team struct {
	ID          string
	Name        string
	Slug        string
	Description string
	Role        string
	Members     []*Member
}

type Topics

type Topics struct {
	Nodes []struct {
		Topic struct {
			Name string
		}
	}
}

Jump to

Keyboard shortcuts

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