Documentation
¶
Index ¶
- type Enterprise
- type ExtendedOrg
- type GitHubQLBranch
- type GitHubQLBranchProtectionRule
- type GitHubQLDependencyGraphManifests
- type GitHubQLPageInfo
- type GitHubQLRepository
- type GitHubQLRepositoryCollaborators
- type GitHubQLRepositoryCollaboratorsEdge
- type Organization
- type OrganizationActions
- type OrganizationMember
- type OrganizationMembers
- type OrganizationSecret
- type Repository
- type RepositorySecret
- type RunnerGroup
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"`
NotificationDeliveryRestrictionEnabledSetting string `json:"notification_delivery_restriction_enabled"`
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, notificationDeliveryRestrictionEnabledSetting string, samlEnabled bool, codeAndSecurityPolicySettings *types.AnalysisAndSecurityPolicies) Enterprise
func (Enterprise) CanonicalLink ¶ added in v0.2.6
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 NewExtendedOrg ¶
func NewExtendedOrg(org *github.Organization, role permissions.OrganizationRole) ExtendedOrg
func (ExtendedOrg) CanonicalLink ¶ added in v0.1.6
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 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 Organization ¶
type Organization struct {
Organization *ExtendedOrg `json:"organization"`
SamlEnabled *bool `json:"saml_enabled,omitempty"`
Hooks []*github.Hook `json:"hooks"`
UserRole permissions.OrganizationRole
OrgSecrets []*OrganizationSecret `json:"organization_secrets,omitempty"`
}
func (Organization) CanonicalLink ¶
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 (OrganizationActions) CanonicalLink ¶
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 (OrganizationMembers) CanonicalLink ¶
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 OrganizationSecret ¶ added in v1.0.8
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,omitempty"`
RepoSecrets []*RepositorySecret `json:"repository_secrets,omitempty"`
SecurityAndAnalysis *github.SecurityAndAnalysis `json:"security_and_analysis,omitempty"`
}
func (Repository) CanonicalLink ¶
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 RepositorySecret ¶ added in v1.0.8
type RunnerGroup ¶ added in v0.1.6
type RunnerGroup struct {
Organization ExtendedOrg `json:"organization"`
RunnerGroup *github.RunnerGroup `json:"runner_group"`
}
func (RunnerGroup) CanonicalLink ¶ added in v0.1.6
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
Click to show internal directories.
Click to hide internal directories.