Package admin implements the Repository Administrators security policy.
This section is empty.
This section is empty.
NewAdmin returns a new Repository Administrator policy.
Admin is the Repository Administrator policy object, implements policydef.Policy.
Check performs the policy check for Repository Administrators based on the configuration stored in the org/repo, implementing policydef.Policy.Check().
Fix implementing policydef.Policy.Fix(). Currently not supported. Plan to support this TODO.
GetAction returns the configured action from this policy's configuration stored in the org-level repo, default log. Implementing policydef.Policy.GetAction().
Check whether this policy is enabled or not.
Name returns the name of this policy, implementing policydef.Policy.Name().
type AdministratorExemption struct { Repo string `json:"repo"` OwnerlessAllowed bool `json:"ownerlessAllowed"` UserAdminsAllowed bool `json:"userAdminsAllowed"` UserAdmins []string `json:"userAdmins"` MaxNumberUserAdmins int `json:"maxNumberUserAdmins"` TeamAdminsAllowed bool `json:"teamAdminsAllowed"` TeamAdmins []string `json:"teamAdmins"` MaxNumberAdminTeams int `json:"maxNumberAdminTeams"` }
AdministratorExemption is an exemption entry for the Repository Administrators policy.
type OrgConfig struct { OptConfig config.OrgOptConfig `json:"optConfig"` Action string `json:"action"` OwnerlessAllowed bool `json:"ownerlessAllowed"` UserAdminsAllowed bool `json:"userAdminsAllowed"` MaxNumberUserAdmins int `json:"maxNumberUserAdmins"` TeamAdminsAllowed bool `json:"teamAdminsAllowed"` MaxNumberAdminTeams int `json:"maxNumberAdminTeams"` Exemptions []*AdministratorExemption `json:"exemptions"` }
OrgConfig is the org-level config definition for Repository Administrators security policy.
type RepoConfig struct { OptConfig config.RepoOptConfig `json:"optConfig"` Action *string `json:"action"` OwnerlessAllowed *bool `json:"ownerlessAllowed"` UserAdminsAllowed *bool `json:"userAdminsAllowed"` MaxNumberUserAdmins *int `json:"maxNumberUserAdmins"` TeamAdminsAllowed *bool `json:"teamAdminsAllowed"` MaxNumberAdminTeams *int `json:"maxNumberAdminTeams"` }
RepoConfig is the repo-level config for Repository Administrators security policy.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4