Documentation ¶
Overview ¶
Code generated by go generate; DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PermissionStrings = map[Permission]string{ Project: "project", ProjectAdmin: "project:admin", Repository: "repository", RepositoryWrite: "repository:write", RepositoryAdmin: "repository:admin", RepositoryDelete: "repository:delete", Pullrequest: "pullrequest", PullrequestWrite: "pullrequest:write", Webhook: "webhook", Account: "account", Pipeline: "pipeline", PipelineWrite: "pipeline:write", PipelineVariable: "pipeline:variable", Runner: "runner", RunnerWrite: "runner:write", } StringToPermission = map[string]Permission{ "project": Project, "project:admin": ProjectAdmin, "repository": Repository, "repository:write": RepositoryWrite, "repository:admin": RepositoryAdmin, "repository:delete": RepositoryDelete, "pullrequest": Pullrequest, "pullrequest:write": PullrequestWrite, "webhook": Webhook, "account": Account, "pipeline": Pipeline, "pipeline:write": PipelineWrite, "pipeline:variable": PipelineVariable, "runner": Runner, "runner:write": RunnerWrite, } PermissionIDs = map[Permission]int{ Project: 1, ProjectAdmin: 2, Repository: 3, RepositoryWrite: 4, RepositoryAdmin: 5, RepositoryDelete: 6, Pullrequest: 7, PullrequestWrite: 8, Webhook: 9, Account: 10, Pipeline: 11, PipelineWrite: 12, PipelineVariable: 13, Runner: 14, RunnerWrite: 15, } IdToPermission = map[int]Permission{ 1: Project, 2: ProjectAdmin, 3: Repository, 4: RepositoryWrite, 5: RepositoryAdmin, 6: RepositoryDelete, 7: Pullrequest, 8: PullrequestWrite, 9: Webhook, 10: Account, 11: Pipeline, 12: PipelineWrite, 13: PipelineVariable, 14: Runner, 15: RunnerWrite, } )
Functions ¶
func AnalyzeAndPrintPermissions ¶ added in v3.80.5
Types ¶
type Analyzer ¶ added in v3.80.5
func (Analyzer) Type ¶ added in v3.80.5
func (Analyzer) Type() analyzerpb.AnalyzerType
type BitbucketScope ¶
type ByCategoryAndName ¶
type ByCategoryAndName []BitbucketScope
func (ByCategoryAndName) Len ¶
func (a ByCategoryAndName) Len() int
func (ByCategoryAndName) Less ¶
func (a ByCategoryAndName) Less(i, j int) bool
func (ByCategoryAndName) Swap ¶
func (a ByCategoryAndName) Swap(i, j int)
type Permission ¶ added in v3.82.0
type Permission int
const ( Invalid Permission = iota Project Permission = iota ProjectAdmin Permission = iota Repository Permission = iota RepositoryWrite Permission = iota RepositoryAdmin Permission = iota RepositoryDelete Permission = iota Pullrequest Permission = iota PullrequestWrite Permission = iota Webhook Permission = iota Account Permission = iota Pipeline Permission = iota PipelineWrite Permission = iota PipelineVariable Permission = iota Runner Permission = iota RunnerWrite Permission = iota )
func PermissionFromID ¶ added in v3.82.0
func PermissionFromID(id int) (Permission, error)
PermissionFromID converts an ID to its Permission enum
func PermissionFromString ¶ added in v3.82.0
func PermissionFromString(s string) (Permission, error)
PermissionFromString converts a string representation to its Permission enum
func (Permission) ToID ¶ added in v3.82.0
func (p Permission) ToID() (int, error)
ToID converts a Permission enum to its ID
func (Permission) ToString ¶ added in v3.82.0
func (p Permission) ToString() (string, error)
ToString converts a Permission enum to its string representation
type Repo ¶
type Repo struct { ID string `json:"uuid"` FullName string `json:"full_name"` RepoName string `json:"name"` Project struct { ID string `json:"uuid"` Name string `json:"name"` } `json:"project"` Workspace struct { ID string `json:"uuid"` Name string `json:"name"` } `json:"workspace"` IsPrivate bool `json:"is_private"` Owner struct { ID string `json:"uuid"` Username string `json:"username"` } `json:"owner"` Role string }
type SecretInfo ¶ added in v3.80.5
func AnalyzePermissions ¶
func AnalyzePermissions(cfg *config.Config, key string) (*SecretInfo, error)
Click to show internal directories.
Click to hide internal directories.