rbac

package
v0.0.0-...-987a61a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnforcerUtil

type EnforcerUtil interface {
	GetAppRBACName(appName string) string
	GetRbacObjectsForAllApps() map[int]string
	GetAppRBACNameByAppId(appId int) string
	GetAppRBACByAppNameAndEnvId(appName string, envId int) string
	GetAppRBACByAppIdAndPipelineId(appId int, pipelineId int) string
	GetTeamEnvRBACNameByAppId(appId int, envId int) string
	GetEnvRBACNameByAppId(appId int, envId int) string
	GetTeamRBACByCiPipelineId(pipelineId int) string
	GetEnvRBACArrayByAppId(appId int) []string
	GetEnvRBACNameByCiPipelineIdAndEnvId(ciPipelineId int, envId int) string
	GetTeamRbacObjectByCiPipelineId(ciPipelineId int) string
	GetTeamAndEnvironmentRbacObjectByCDPipelineId(pipelineId int) (string, string)
	GetRbacObjectsForAllAppsAndEnvironments() (map[int]string, map[string]string)
	GetProjectAdminRBACNameBYAppName(appName string) string
	GetHelmObject(appId int, envId int) string
	GetHelmObjectByAppNameAndEnvId(appName string, envId int) string
	GetHelmObjectByProjectIdAndEnvId(teamId int, envId int) string
	GetEnvRBACNameByCdPipelineIdAndEnvId(cdPipelineId int, envId int) string
}

type EnforcerUtilHelm

type EnforcerUtilHelm interface {
	GetHelmObjectByClusterId(clusterId int, namespace string, appName string) string
}

type EnforcerUtilHelmImpl

type EnforcerUtilHelmImpl struct {
	// contains filtered or unexported fields
}

func NewEnforcerUtilHelmImpl

func NewEnforcerUtilHelmImpl(logger *zap.SugaredLogger,
	clusterRepository repository.ClusterRepository) *EnforcerUtilHelmImpl

func (EnforcerUtilHelmImpl) GetHelmObjectByClusterId

func (impl EnforcerUtilHelmImpl) GetHelmObjectByClusterId(clusterId int, namespace string, appName string) string

type EnforcerUtilImpl

type EnforcerUtilImpl struct {
	*EnforcerUtilHelmImpl
	// contains filtered or unexported fields
}

func NewEnforcerUtilImpl

func NewEnforcerUtilImpl(logger *zap.SugaredLogger, teamRepository team.TeamRepository,
	appRepo app.AppRepository, environmentRepository repository.EnvironmentRepository,
	pipelineRepository pipelineConfig.PipelineRepository, ciPipelineRepository pipelineConfig.CiPipelineRepository,
	clusterRepository repository.ClusterRepository) *EnforcerUtilImpl

func (EnforcerUtilImpl) GetAppRBACByAppIdAndPipelineId

func (impl EnforcerUtilImpl) GetAppRBACByAppIdAndPipelineId(appId int, pipelineId int) string

func (EnforcerUtilImpl) GetAppRBACByAppNameAndEnvId

func (impl EnforcerUtilImpl) GetAppRBACByAppNameAndEnvId(appName string, envId int) string

func (EnforcerUtilImpl) GetAppRBACName

func (impl EnforcerUtilImpl) GetAppRBACName(appName string) string

func (EnforcerUtilImpl) GetAppRBACNameByAppId

func (impl EnforcerUtilImpl) GetAppRBACNameByAppId(appId int) string

func (EnforcerUtilImpl) GetEnvRBACArrayByAppId

func (impl EnforcerUtilImpl) GetEnvRBACArrayByAppId(appId int) []string

func (EnforcerUtilImpl) GetEnvRBACNameByAppId

func (impl EnforcerUtilImpl) GetEnvRBACNameByAppId(appId int, envId int) string

func (EnforcerUtilImpl) GetEnvRBACNameByCdPipelineIdAndEnvId

func (impl EnforcerUtilImpl) GetEnvRBACNameByCdPipelineIdAndEnvId(cdPipelineId int, envId int) string

func (EnforcerUtilImpl) GetEnvRBACNameByCiPipelineIdAndEnvId

func (impl EnforcerUtilImpl) GetEnvRBACNameByCiPipelineIdAndEnvId(ciPipelineId int, envId int) string

func (EnforcerUtilImpl) GetHelmObject

func (impl EnforcerUtilImpl) GetHelmObject(appId int, envId int) string

func (EnforcerUtilImpl) GetHelmObjectByAppNameAndEnvId

func (impl EnforcerUtilImpl) GetHelmObjectByAppNameAndEnvId(appName string, envId int) string

func (EnforcerUtilImpl) GetHelmObjectByProjectIdAndEnvId

func (impl EnforcerUtilImpl) GetHelmObjectByProjectIdAndEnvId(teamId int, envId int) string

func (EnforcerUtilImpl) GetProjectAdminRBACNameBYAppName

func (impl EnforcerUtilImpl) GetProjectAdminRBACNameBYAppName(appName string) string

func (EnforcerUtilImpl) GetRbacObjectsForAllApps

func (impl EnforcerUtilImpl) GetRbacObjectsForAllApps() map[int]string

func (EnforcerUtilImpl) GetRbacObjectsForAllAppsAndEnvironments

func (impl EnforcerUtilImpl) GetRbacObjectsForAllAppsAndEnvironments() (map[int]string, map[string]string)

func (EnforcerUtilImpl) GetTeamAndEnvironmentRbacObjectByCDPipelineId

func (impl EnforcerUtilImpl) GetTeamAndEnvironmentRbacObjectByCDPipelineId(pipelineId int) (string, string)

func (EnforcerUtilImpl) GetTeamEnvRBACNameByAppId

func (impl EnforcerUtilImpl) GetTeamEnvRBACNameByAppId(appId int, envId int) string

func (EnforcerUtilImpl) GetTeamRBACByCiPipelineId

func (impl EnforcerUtilImpl) GetTeamRBACByCiPipelineId(pipelineId int) string

func (EnforcerUtilImpl) GetTeamRbacObjectByCiPipelineId

func (impl EnforcerUtilImpl) GetTeamRbacObjectByCiPipelineId(ciPipelineId int) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL