Documentation
¶
Overview ¶
Code generated by go generate; DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PermissionStrings = map[Permission]string{ ConfigurationAccess: "configuration_access", Read: "read", Delete: "delete", CreateAndUpdate: "create_and_update", } StringToPermission = map[string]Permission{ "configuration_access": ConfigurationAccess, "read": Read, "delete": Delete, "create_and_update": CreateAndUpdate, } PermissionIDs = map[Permission]int{ ConfigurationAccess: 1, Read: 2, Delete: 3, CreateAndUpdate: 4, } IdToPermission = map[int]Permission{ 1: ConfigurationAccess, 2: Read, 3: Delete, 4: CreateAndUpdate, } )
Functions ¶
func StatusContains ¶
Types ¶
type Analyzer ¶
func (Analyzer) Type ¶
func (Analyzer) Type() analyzers.AnalyzerType
type HttpStatusTest ¶
type Permission ¶
type Permission int
const ( Invalid Permission = iota ConfigurationAccess Permission = iota Read Permission = iota Delete Permission = iota CreateAndUpdate Permission = iota )
func PermissionFromID ¶
func PermissionFromID(id int) (Permission, error)
PermissionFromID converts an ID to its Permission enum
func PermissionFromString ¶
func PermissionFromString(s string) (Permission, error)
PermissionFromString converts a string representation to its Permission enum
func (Permission) ToID ¶
func (p Permission) ToID() (int, error)
ToID converts a Permission enum to its ID
func (Permission) ToString ¶
func (p Permission) ToString() (string, error)
ToString converts a Permission enum to its string representation
type Scope ¶
type Scope struct { Name string `json:"name"` HttpTest HttpStatusTest `json:"test"` }
type SecretInfo ¶
func AnalyzePermissions ¶
func AnalyzePermissions(cfg *config.Config, key string) (*SecretInfo, error)
Click to show internal directories.
Click to hide internal directories.