githubcollected

package
v1.0.6-test Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enterprise added in v0.2.6

type Enterprise struct {
	MembersCanChangeRepositoryVisibilitySetting string `json:"members_can_change_repository_visibility"`
	RepositoriesForkingPolicy                   string `json:"repositories_forking_policy"`
	ExternalCollaboratorsInvitePolicy           string `json:"external_collaborators_invite_policy"`
	TwoFactorRequiredSetting                    string `json:"two_factor_required_setting"`
	SamlEnabled                                 bool   `json:"saml_enabled"`
	EnterpriseName                              string `json:"name"`
	Url                                         string `json:"url"`
	Id                                          int64  `json:"id"`
	UserRole                                    string
	MembersCanCreatePublicRepositoriesSetting   bool                               `json:"members_can_create_public_repositories"`
	DefaultRepositoryPermissionSetting          string                             `json:"default_repository_permission_settings"`
	MembersCanDeleteRepositoriesSetting         string                             `json:"member_can_delete_repository"`
	CodeAndSecurityPolicySettings               *types.AnalysisAndSecurityPolicies `json:"code_analysis_and_security_policies"`
}

func NewEnterprise added in v0.2.6

func NewEnterprise(membersCanChangeRepositoryVisibilitySetting string, name string, Url string, Id int64, isAdmin bool, repositoriesForkingPolicy string,
	externalCollaboratorsInvitePolicy string, membersCanCreatePublicRepositoriesSetting bool, twoFactorRequiredSetting string, defaultRepositoryPermissionSetting string, membersCanDeleteRepositoriesSetting string, samlEnabled bool, codeAndSecurityPolicySettings *types.AnalysisAndSecurityPolicies) Enterprise
func (o Enterprise) CanonicalLink() string

func (Enterprise) ID added in v0.2.6

func (o Enterprise) ID() int64

func (Enterprise) Name added in v0.2.6

func (o Enterprise) Name() string

func (Enterprise) ViolationEntityType added in v0.2.6

func (o Enterprise) ViolationEntityType() string

type ExtendedOrg

type ExtendedOrg struct {
	github.Organization
	Role permissions.OrganizationRole
}
func (e ExtendedOrg) CanonicalLink() string

func (ExtendedOrg) IsEnterprise

func (e ExtendedOrg) IsEnterprise() bool

func (ExtendedOrg) IsFree

func (e ExtendedOrg) IsFree() bool

func (ExtendedOrg) Name added in v0.1.6

func (e ExtendedOrg) Name() string

type GitHubQLBranch

type GitHubQLBranch struct {
	Name                 *string
	BranchProtectionRule *GitHubQLBranchProtectionRule `json:"branch_protection_rule"`
}

type GitHubQLBranchProtectionRule

type GitHubQLBranchProtectionRule struct {
	AllowsDeletions                *bool `json:"allows_deletions,omitempty"`
	AllowsForcePushes              *bool `json:"allows_force_pushes,omitempty"`
	DismissesStaleReviews          *bool `json:"dismisses_stale_reviews,omitempty"`
	IsAdminEnforced                *bool `json:"is_admin_enforced,omitempty"`
	RequiredApprovingReviewCount   *int  `json:"required_approving_review_count,omitempty"`
	RequiresStatusChecks           *bool `json:"requires_status_checks,omitempty"`
	RequiresStrictStatusChecks     *bool `json:"requires_strict_status_checks,omitempty"`
	RestrictsPushes                *bool `json:"restricts_pushes,omitempty"`
	RequiresCodeOwnerReviews       *bool `json:"requires_code_owner_reviews,omitempty"`
	RequiresLinearHistory          *bool `json:"requires_linear_history,omitempty"`
	RequiresConversationResolution *bool `json:"requires_conversation_resolution,omitempty"`
	RequiresCommitSignatures       *bool `json:"requires_commit_signatures,omitempty"`
	RestrictsReviewDismissals      *bool `json:"restricts_review_dismissals,omitempty"`
}

type GitHubQLDependencyGraphManifests

type GitHubQLDependencyGraphManifests struct {
	TotalCount int `json:"total_count"`
}

type GitHubQLPageInfo

type GitHubQLPageInfo struct {
	EndCursor       *githubv4.String
	HasNextPage     bool
	HasPreviousPage bool
	StartCursor     *githubv4.String
}

type GitHubQLRepository

type GitHubQLRepository struct {
	Name               string `json:"name"`
	RebaseMergeAllowed bool
	Url                string
	DatabaseId         int64
	IsPrivate          bool               `json:"is_private"`
	ForkingAllowed     bool               `json:"allow_forking"`
	IsArchived         bool               `json:"is_archived"`
	DefaultBranchRef   *GitHubQLBranch    `json:"default_branch"`
	PushedAt           *githubv4.DateTime `json:"pushed_at"`
	ViewerPermission   string             `json:"viewerPermission"`
}

type GitHubQLRepositoryCollaborators

type GitHubQLRepositoryCollaborators struct {
	Edges []GitHubQLRepositoryCollaboratorsEdge `json:"edges" graphql:"edges"`
}

type GitHubQLRepositoryCollaboratorsEdge

type GitHubQLRepositoryCollaboratorsEdge struct {
	Permission *githubv4.String `json:"permission"`
}

type Organization

type Organization struct {
	Organization *ExtendedOrg   `json:"organization"`
	SamlEnabled  *bool          `json:"saml_enabled,omitempty"`
	Hooks        []*github.Hook `json:"hooks"`
	UserRole     permissions.OrganizationRole
}
func (o Organization) CanonicalLink() string

func (Organization) ID

func (o Organization) ID() int64

func (Organization) Name

func (o Organization) Name() string

func (Organization) ViolationEntityType

func (o Organization) ViolationEntityType() string

type OrganizationActions

type OrganizationActions struct {
	Organization       ExtendedOrg                `json:"organization"`
	ActionsPermissions *github.ActionsPermissions `json:"actions_permissions"`
	TokenPermissions   *types.TokenPermissions    `json:"token_permissions"`
}
func (o OrganizationActions) CanonicalLink() string

func (OrganizationActions) ID

func (o OrganizationActions) ID() int64

func (OrganizationActions) Name

func (o OrganizationActions) Name() string

func (OrganizationActions) ViolationEntityType

func (o OrganizationActions) ViolationEntityType() string

type OrganizationMember

type OrganizationMember struct {
	User       *github.User `json:"user"`
	LastActive int          `json:"last_active"`
	IsAdmin    bool         `json:"is_admin"`
}

func NewOrganizationMember

func NewOrganizationMember(user *github.User, lastActive int, memberType string) OrganizationMember

type OrganizationMembers

type OrganizationMembers struct {
	Organization  ExtendedOrg          `json:"organization"`
	Members       []OrganizationMember `json:"members"`
	HasLastActive bool                 `json:"has_last_active"`
}
func (o OrganizationMembers) CanonicalLink() string

func (OrganizationMembers) ID

func (o OrganizationMembers) ID() int64

func (OrganizationMembers) Name

func (o OrganizationMembers) Name() string

func (OrganizationMembers) ViolationEntityType

func (o OrganizationMembers) ViolationEntityType() string

type Repository

type Repository struct {
	Repository                   *GitHubQLRepository               `json:"repository"`
	VulnerabilityAlertsEnabled   *bool                             `json:"vulnerability_alerts_enabled"`
	NoBranchProtectionPermission bool                              `json:"no_branch_protection_permission"`
	Scorecard                    *scorecard.Result                 `json:"scorecard,omitempty"`
	Hooks                        []*github.Hook                    `json:"hooks"`
	Collaborators                []*github.User                    `json:"collaborators,omitempty"`
	ActionsTokenPermissions      *types.TokenPermissions           `json:"actions_token_permissions"`
	DependencyGraphManifests     *GitHubQLDependencyGraphManifests `json:"dependency_graph_manifests"`
	RulesSet                     []*types.RepositoryRule           `json:"rules_set"`
}
func (r Repository) CanonicalLink() string

func (Repository) ID

func (r Repository) ID() int64

func (Repository) Name

func (r Repository) Name() string

func (Repository) ViolationEntityType

func (r Repository) ViolationEntityType() string

type RunnerGroup added in v0.1.6

type RunnerGroup struct {
	Organization ExtendedOrg         `json:"organization"`
	RunnerGroup  *github.RunnerGroup `json:"runner_group"`
}
func (o RunnerGroup) CanonicalLink() string

func (RunnerGroup) ID added in v0.1.6

func (o RunnerGroup) ID() int64

func (RunnerGroup) Name added in v0.1.6

func (o RunnerGroup) Name() string

func (RunnerGroup) ViolationEntityType added in v0.1.6

func (o RunnerGroup) ViolationEntityType() string

Jump to

Keyboard shortcuts

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