Documentation ¶
Index ¶
- Constants
- Variables
- func AccessToApplication(applicationID int64, user *sdk.User, access int) bool
- func AccessToEnvironment(envID int64, user *sdk.User, access int) bool
- func AccessToPipeline(environmentID, pipelineID int64, user *sdk.User, access int) bool
- func ApplicationPermission(applicationID int64, user *sdk.User) int
- func ApplicationPipelineEnvironmentUsers(db database.Querier, appID, pipID, envID int64, access int) ([]sdk.User, error)
- func EnvironmentPermission(envID int64, user *sdk.User) int
- func PipelinePermission(pipelineID int64, user *sdk.User) int
- func ProjectPermission(projectKey string, user *sdk.User) int
Constants ¶
View Source
const ( // PermissionRead read permission on the resource PermissionRead = 4 // PermissionReadExecute read & execute permission on the resource PermissionReadExecute = 5 // PermissionReadWriteExecute read/execute/write permission on the resource PermissionReadWriteExecute = 7 )
Variables ¶
View Source
var ( int64 )SharedInfraGroupID
Functions ¶
func AccessToApplication ¶
AccessToApplication check if we can modify the given application
func AccessToEnvironment ¶
AccessToEnvironment check if we can modify the given environment
func AccessToPipeline ¶
AccessToPipeline check if we can modify the given pipeline
func ApplicationPermission ¶
ApplicationPermission Get the permission for the given application
func ApplicationPipelineEnvironmentUsers ¶
func ApplicationPipelineEnvironmentUsers(db database.Querier, appID, pipID, envID int64, access int) ([]sdk.User, error)
ApplicationPipelineEnvironmentUsers returns users list with expected access to application/pipeline/environment
func EnvironmentPermission ¶
EnvironmentPermission Get the permission for the given environment
func PipelinePermission ¶
PipelinePermission Get the permission for the given pipeline
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.