Documentation
¶
Index ¶
- type EnforcerUtil
- type EnforcerUtilHelm
- type EnforcerUtilHelmImpl
- func (impl EnforcerUtilHelmImpl) GetAppRBACNameByInstalledAppId(installedAppVersionId int) (string, string)
- func (impl EnforcerUtilHelmImpl) GetHelmObjectByClusterId(clusterId int, namespace string, appName string) string
- func (impl EnforcerUtilHelmImpl) GetHelmObjectByClusterIdNamespaceAndAppName(clusterId int, namespace string, appName string) (string, string)
- func (impl EnforcerUtilHelmImpl) GetHelmObjectByTeamIdAndClusterId(teamId int, clusterId int, namespace string, appName string) string
- type EnforcerUtilImpl
- func (impl EnforcerUtilImpl) GetAppAndEnvObjectByPipelineIds(cdPipelineIds []int) map[int][]string
- func (impl EnforcerUtilImpl) GetAppObjectByCiPipelineIds(ciPipelineIds []int) map[int]string
- func (impl EnforcerUtilImpl) GetAppRBACByAppIdAndPipelineId(appId int, pipelineId int) string
- func (impl EnforcerUtilImpl) GetAppRBACByAppNameAndEnvId(appName string, envId int) string
- func (impl EnforcerUtilImpl) GetAppRBACName(appName string) string
- func (impl EnforcerUtilImpl) GetAppRBACNameByAppId(appId int) string
- func (impl EnforcerUtilImpl) GetAppRBACNameByTeamIdAndAppId(teamId int, appId int) string
- func (impl EnforcerUtilImpl) GetEnvRBACArrayByAppId(appId int) []string
- func (impl EnforcerUtilImpl) GetEnvRBACNameByAppId(appId int, envId int) string
- func (impl EnforcerUtilImpl) GetEnvRBACNameByCdPipelineIdAndEnvId(cdPipelineId int) string
- func (impl EnforcerUtilImpl) GetEnvRBACNameByCiPipelineIdAndEnvId(ciPipelineId int, envId int) string
- func (impl EnforcerUtilImpl) GetHelmObject(appId int, envId int) (string, string)
- func (impl EnforcerUtilImpl) GetHelmObjectByAppNameAndEnvId(appName string, envId int) (string, string)
- func (impl EnforcerUtilImpl) GetHelmObjectByProjectIdAndEnvId(teamId int, envId int) (string, string)
- func (impl EnforcerUtilImpl) GetProjectAdminRBACNameBYAppName(appName string) string
- func (impl EnforcerUtilImpl) GetRBACNameForClusterEntity(clusterName string, resourceIdentifier application.ResourceIdentifier) (resourceName, objectName string)
- func (impl EnforcerUtilImpl) GetRbacObjectsForAllApps() map[int]string
- func (impl EnforcerUtilImpl) GetRbacObjectsForAllAppsAndEnvironments() (map[int]string, map[string]string)
- func (impl EnforcerUtilImpl) GetTeamAndEnvironmentRbacObjectByCDPipelineId(pipelineId int) (string, string)
- func (impl EnforcerUtilImpl) GetTeamEnvRBACNameByAppId(appId int, envId int) string
- func (impl EnforcerUtilImpl) GetTeamRBACByCiPipelineId(pipelineId int) string
- func (impl EnforcerUtilImpl) GetTeamRbacObjectByCiPipelineId(ciPipelineId int) string
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, string)
GetHelmObjectByAppNameAndEnvId(appName string, envId int) (string, string)
GetHelmObjectByProjectIdAndEnvId(teamId int, envId int) (string, string)
GetEnvRBACNameByCdPipelineIdAndEnvId(cdPipelineId int) string
GetAppRBACNameByTeamIdAndAppId(teamId int, appId int) string
GetRBACNameForClusterEntity(clusterName string, resourceIdentifier application.ResourceIdentifier) (resourceName, objectName string)
GetAppObjectByCiPipelineIds(ciPipelineIds []int) map[int]string
GetAppAndEnvObjectByPipelineIds(cdPipelineIds []int) map[int][]string
}
type EnforcerUtilHelm ¶ added in v0.3.14
type EnforcerUtilHelm interface {
GetHelmObjectByClusterId(clusterId int, namespace string, appName string) string
GetHelmObjectByTeamIdAndClusterId(teamId int, clusterId int, namespace string, appName string) string
GetHelmObjectByClusterIdNamespaceAndAppName(clusterId int, namespace string, appName string) (string, string)
GetAppRBACNameByInstalledAppId(installedAppId int) (string, string)
}
type EnforcerUtilHelmImpl ¶ added in v0.3.14
type EnforcerUtilHelmImpl struct {
InstalledAppRepository repository2.InstalledAppRepository
// contains filtered or unexported fields
}
func NewEnforcerUtilHelmImpl ¶ added in v0.3.14
func NewEnforcerUtilHelmImpl(logger *zap.SugaredLogger, clusterRepository repository.ClusterRepository, teamRepository team.TeamRepository, appRepository app.AppRepository, environmentRepository repository.EnvironmentRepository, installedAppRepository repository2.InstalledAppRepository, ) *EnforcerUtilHelmImpl
func (EnforcerUtilHelmImpl) GetAppRBACNameByInstalledAppId ¶ added in v0.6.11
func (impl EnforcerUtilHelmImpl) GetAppRBACNameByInstalledAppId(installedAppVersionId int) (string, string)
func (EnforcerUtilHelmImpl) GetHelmObjectByClusterId ¶ added in v0.3.14
func (impl EnforcerUtilHelmImpl) GetHelmObjectByClusterId(clusterId int, namespace string, appName string) string
func (EnforcerUtilHelmImpl) GetHelmObjectByClusterIdNamespaceAndAppName ¶ added in v0.6.11
func (EnforcerUtilHelmImpl) GetHelmObjectByTeamIdAndClusterId ¶ added in v0.6.11
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) GetAppAndEnvObjectByPipelineIds ¶ added in v0.6.15
func (impl EnforcerUtilImpl) GetAppAndEnvObjectByPipelineIds(cdPipelineIds []int) map[int][]string
func (EnforcerUtilImpl) GetAppObjectByCiPipelineIds ¶ added in v0.6.15
func (impl EnforcerUtilImpl) GetAppObjectByCiPipelineIds(ciPipelineIds []int) map[int]string
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) GetAppRBACNameByTeamIdAndAppId ¶ added in v0.6.0
func (impl EnforcerUtilImpl) GetAppRBACNameByTeamIdAndAppId(teamId int, 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 ¶ added in v0.4.8
func (impl EnforcerUtilImpl) GetEnvRBACNameByCdPipelineIdAndEnvId(cdPipelineId int) string
func (EnforcerUtilImpl) GetEnvRBACNameByCiPipelineIdAndEnvId ¶
func (impl EnforcerUtilImpl) GetEnvRBACNameByCiPipelineIdAndEnvId(ciPipelineId int, envId int) string
func (EnforcerUtilImpl) GetHelmObject ¶ added in v0.3.14
func (impl EnforcerUtilImpl) GetHelmObject(appId int, envId int) (string, string)
func (EnforcerUtilImpl) GetHelmObjectByAppNameAndEnvId ¶ added in v0.3.14
func (impl EnforcerUtilImpl) GetHelmObjectByAppNameAndEnvId(appName string, envId int) (string, string)
func (EnforcerUtilImpl) GetHelmObjectByProjectIdAndEnvId ¶ added in v0.3.24
func (impl EnforcerUtilImpl) GetHelmObjectByProjectIdAndEnvId(teamId int, envId int) (string, string)
func (EnforcerUtilImpl) GetProjectAdminRBACNameBYAppName ¶ added in v0.3.9
func (impl EnforcerUtilImpl) GetProjectAdminRBACNameBYAppName(appName string) string
func (EnforcerUtilImpl) GetRBACNameForClusterEntity ¶ added in v0.6.11
func (impl EnforcerUtilImpl) GetRBACNameForClusterEntity(clusterName string, resourceIdentifier application.ResourceIdentifier) (resourceName, objectName string)
func (EnforcerUtilImpl) GetRbacObjectsForAllApps ¶
func (impl EnforcerUtilImpl) GetRbacObjectsForAllApps() map[int]string
func (EnforcerUtilImpl) GetRbacObjectsForAllAppsAndEnvironments ¶ added in v0.2.17
func (impl EnforcerUtilImpl) GetRbacObjectsForAllAppsAndEnvironments() (map[int]string, map[string]string)
func (EnforcerUtilImpl) GetTeamAndEnvironmentRbacObjectByCDPipelineId ¶
func (impl EnforcerUtilImpl) GetTeamAndEnvironmentRbacObjectByCDPipelineId(pipelineId int) (string, string)
func (EnforcerUtilImpl) GetTeamEnvRBACNameByAppId ¶ added in v0.3.15
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
Click to show internal directories.
Click to hide internal directories.