mock_rbac

package
v0.6.29 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_rbac is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEnforcerUtil

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

MockEnforcerUtil is a mock of EnforcerUtil interface.

func NewMockEnforcerUtil

func NewMockEnforcerUtil(ctrl *gomock.Controller) *MockEnforcerUtil

NewMockEnforcerUtil creates a new mock instance.

func (*MockEnforcerUtil) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEnforcerUtil) GetAllActiveTeamNames

func (m *MockEnforcerUtil) GetAllActiveTeamNames() ([]string, error)

GetAllActiveTeamNames mocks base method.

func (*MockEnforcerUtil) GetAppAndEnvObjectByDbPipeline

func (m *MockEnforcerUtil) GetAppAndEnvObjectByDbPipeline(cdPipelines []*pipelineConfig.Pipeline) map[int][]string

GetAppAndEnvObjectByDbPipeline mocks base method.

func (*MockEnforcerUtil) GetAppAndEnvObjectByPipeline

func (m *MockEnforcerUtil) GetAppAndEnvObjectByPipeline(cdPipelines []*bean.CDPipelineConfigObject) map[int][]string

GetAppAndEnvObjectByPipeline mocks base method.

func (*MockEnforcerUtil) GetAppAndEnvObjectByPipelineIds

func (m *MockEnforcerUtil) GetAppAndEnvObjectByPipelineIds(cdPipelineIds []int) map[int][]string

GetAppAndEnvObjectByPipelineIds mocks base method.

func (*MockEnforcerUtil) GetAppObjectByCiPipelineIds

func (m *MockEnforcerUtil) GetAppObjectByCiPipelineIds(ciPipelineIds []int) map[int]string

GetAppObjectByCiPipelineIds mocks base method.

func (*MockEnforcerUtil) GetAppRBACByAppIdAndPipelineId

func (m *MockEnforcerUtil) GetAppRBACByAppIdAndPipelineId(appId, pipelineId int) string

GetAppRBACByAppIdAndPipelineId mocks base method.

func (*MockEnforcerUtil) GetAppRBACByAppNameAndEnvId

func (m *MockEnforcerUtil) GetAppRBACByAppNameAndEnvId(appName string, envId int) string

GetAppRBACByAppNameAndEnvId mocks base method.

func (*MockEnforcerUtil) GetAppRBACName

func (m *MockEnforcerUtil) GetAppRBACName(appName string) string

GetAppRBACName mocks base method.

func (*MockEnforcerUtil) GetAppRBACNameByAppId

func (m *MockEnforcerUtil) GetAppRBACNameByAppId(appId int) string

GetAppRBACNameByAppId mocks base method.

func (*MockEnforcerUtil) GetAppRBACNameByTeamIdAndAppId

func (m *MockEnforcerUtil) GetAppRBACNameByTeamIdAndAppId(teamId, appId int) string

GetAppRBACNameByTeamIdAndAppId mocks base method.

func (*MockEnforcerUtil) GetEnvRBACArrayByAppId

func (m *MockEnforcerUtil) GetEnvRBACArrayByAppId(appId int) []string

GetEnvRBACArrayByAppId mocks base method.

func (*MockEnforcerUtil) GetEnvRBACNameByAppId

func (m *MockEnforcerUtil) GetEnvRBACNameByAppId(appId, envId int) string

GetEnvRBACNameByAppId mocks base method.

func (*MockEnforcerUtil) GetEnvRBACNameByCdPipelineIdAndEnvId

func (m *MockEnforcerUtil) GetEnvRBACNameByCdPipelineIdAndEnvId(cdPipelineId int) string

GetEnvRBACNameByCdPipelineIdAndEnvId mocks base method.

func (*MockEnforcerUtil) GetEnvRBACNameByCiPipelineIdAndEnvId

func (m *MockEnforcerUtil) GetEnvRBACNameByCiPipelineIdAndEnvId(ciPipelineId, envId int) string

GetEnvRBACNameByCiPipelineIdAndEnvId mocks base method.

func (*MockEnforcerUtil) GetHelmObject

func (m *MockEnforcerUtil) GetHelmObject(appId, envId int) (string, string)

GetHelmObject mocks base method.

func (*MockEnforcerUtil) GetHelmObjectByAppNameAndEnvId

func (m *MockEnforcerUtil) GetHelmObjectByAppNameAndEnvId(appName string, envId int) (string, string)

GetHelmObjectByAppNameAndEnvId mocks base method.

func (*MockEnforcerUtil) GetHelmObjectByProjectIdAndEnvId

func (m *MockEnforcerUtil) GetHelmObjectByProjectIdAndEnvId(teamId, envId int) (string, string)

GetHelmObjectByProjectIdAndEnvId mocks base method.

func (*MockEnforcerUtil) GetProjectAdminRBACNameBYAppName

func (m *MockEnforcerUtil) GetProjectAdminRBACNameBYAppName(appName string) string

GetProjectAdminRBACNameBYAppName mocks base method.

func (*MockEnforcerUtil) GetRBACNameForClusterEntity

func (m *MockEnforcerUtil) GetRBACNameForClusterEntity(clusterName string, resourceIdentifier k8s.ResourceIdentifier) (string, string)

GetRBACNameForClusterEntity mocks base method.

func (*MockEnforcerUtil) GetRbacObjectsByAppIds

func (m *MockEnforcerUtil) GetRbacObjectsByAppIds(appIds []int) map[int]string

GetRbacObjectsByAppIds mocks base method.

func (*MockEnforcerUtil) GetRbacObjectsForAllApps

func (m *MockEnforcerUtil) GetRbacObjectsForAllApps() map[int]string

GetRbacObjectsForAllApps mocks base method.

func (*MockEnforcerUtil) GetRbacObjectsForAllAppsAndEnvironments

func (m *MockEnforcerUtil) GetRbacObjectsForAllAppsAndEnvironments() (map[int]string, map[string]string)

GetRbacObjectsForAllAppsAndEnvironments mocks base method.

func (*MockEnforcerUtil) GetRbacObjectsForAllAppsWithMatchingAppName

func (m *MockEnforcerUtil) GetRbacObjectsForAllAppsWithMatchingAppName(appNameMatch string) map[int]string

GetRbacObjectsForAllAppsWithMatchingAppName mocks base method.

func (*MockEnforcerUtil) GetRbacObjectsForAllAppsWithTeamID

func (m *MockEnforcerUtil) GetRbacObjectsForAllAppsWithTeamID(teamID int) map[int]string

GetRbacObjectsForAllAppsWithTeamID mocks base method.

func (*MockEnforcerUtil) GetTeamAndEnvironmentRbacObjectByCDPipelineId

func (m *MockEnforcerUtil) GetTeamAndEnvironmentRbacObjectByCDPipelineId(pipelineId int) (string, string)

GetTeamAndEnvironmentRbacObjectByCDPipelineId mocks base method.

func (*MockEnforcerUtil) GetTeamEnvRBACNameByAppId

func (m *MockEnforcerUtil) GetTeamEnvRBACNameByAppId(appId, envId int) string

GetTeamEnvRBACNameByAppId mocks base method.

func (*MockEnforcerUtil) GetTeamRBACByCiPipelineId

func (m *MockEnforcerUtil) GetTeamRBACByCiPipelineId(pipelineId int) string

GetTeamRBACByCiPipelineId mocks base method.

func (*MockEnforcerUtil) GetTeamRbacObjectByCiPipelineId

func (m *MockEnforcerUtil) GetTeamRbacObjectByCiPipelineId(ciPipelineId int) string

GetTeamRbacObjectByCiPipelineId mocks base method.

type MockEnforcerUtilMockRecorder

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

MockEnforcerUtilMockRecorder is the mock recorder for MockEnforcerUtil.

func (*MockEnforcerUtilMockRecorder) GetAllActiveTeamNames

func (mr *MockEnforcerUtilMockRecorder) GetAllActiveTeamNames() *gomock.Call

GetAllActiveTeamNames indicates an expected call of GetAllActiveTeamNames.

func (*MockEnforcerUtilMockRecorder) GetAppAndEnvObjectByDbPipeline

func (mr *MockEnforcerUtilMockRecorder) GetAppAndEnvObjectByDbPipeline(cdPipelines interface{}) *gomock.Call

GetAppAndEnvObjectByDbPipeline indicates an expected call of GetAppAndEnvObjectByDbPipeline.

func (*MockEnforcerUtilMockRecorder) GetAppAndEnvObjectByPipeline

func (mr *MockEnforcerUtilMockRecorder) GetAppAndEnvObjectByPipeline(cdPipelines interface{}) *gomock.Call

GetAppAndEnvObjectByPipeline indicates an expected call of GetAppAndEnvObjectByPipeline.

func (*MockEnforcerUtilMockRecorder) GetAppAndEnvObjectByPipelineIds

func (mr *MockEnforcerUtilMockRecorder) GetAppAndEnvObjectByPipelineIds(cdPipelineIds interface{}) *gomock.Call

GetAppAndEnvObjectByPipelineIds indicates an expected call of GetAppAndEnvObjectByPipelineIds.

func (*MockEnforcerUtilMockRecorder) GetAppObjectByCiPipelineIds

func (mr *MockEnforcerUtilMockRecorder) GetAppObjectByCiPipelineIds(ciPipelineIds interface{}) *gomock.Call

GetAppObjectByCiPipelineIds indicates an expected call of GetAppObjectByCiPipelineIds.

func (*MockEnforcerUtilMockRecorder) GetAppRBACByAppIdAndPipelineId

func (mr *MockEnforcerUtilMockRecorder) GetAppRBACByAppIdAndPipelineId(appId, pipelineId interface{}) *gomock.Call

GetAppRBACByAppIdAndPipelineId indicates an expected call of GetAppRBACByAppIdAndPipelineId.

func (*MockEnforcerUtilMockRecorder) GetAppRBACByAppNameAndEnvId

func (mr *MockEnforcerUtilMockRecorder) GetAppRBACByAppNameAndEnvId(appName, envId interface{}) *gomock.Call

GetAppRBACByAppNameAndEnvId indicates an expected call of GetAppRBACByAppNameAndEnvId.

func (*MockEnforcerUtilMockRecorder) GetAppRBACName

func (mr *MockEnforcerUtilMockRecorder) GetAppRBACName(appName interface{}) *gomock.Call

GetAppRBACName indicates an expected call of GetAppRBACName.

func (*MockEnforcerUtilMockRecorder) GetAppRBACNameByAppId

func (mr *MockEnforcerUtilMockRecorder) GetAppRBACNameByAppId(appId interface{}) *gomock.Call

GetAppRBACNameByAppId indicates an expected call of GetAppRBACNameByAppId.

func (*MockEnforcerUtilMockRecorder) GetAppRBACNameByTeamIdAndAppId

func (mr *MockEnforcerUtilMockRecorder) GetAppRBACNameByTeamIdAndAppId(teamId, appId interface{}) *gomock.Call

GetAppRBACNameByTeamIdAndAppId indicates an expected call of GetAppRBACNameByTeamIdAndAppId.

func (*MockEnforcerUtilMockRecorder) GetEnvRBACArrayByAppId

func (mr *MockEnforcerUtilMockRecorder) GetEnvRBACArrayByAppId(appId interface{}) *gomock.Call

GetEnvRBACArrayByAppId indicates an expected call of GetEnvRBACArrayByAppId.

func (*MockEnforcerUtilMockRecorder) GetEnvRBACNameByAppId

func (mr *MockEnforcerUtilMockRecorder) GetEnvRBACNameByAppId(appId, envId interface{}) *gomock.Call

GetEnvRBACNameByAppId indicates an expected call of GetEnvRBACNameByAppId.

func (*MockEnforcerUtilMockRecorder) GetEnvRBACNameByCdPipelineIdAndEnvId

func (mr *MockEnforcerUtilMockRecorder) GetEnvRBACNameByCdPipelineIdAndEnvId(cdPipelineId interface{}) *gomock.Call

GetEnvRBACNameByCdPipelineIdAndEnvId indicates an expected call of GetEnvRBACNameByCdPipelineIdAndEnvId.

func (*MockEnforcerUtilMockRecorder) GetEnvRBACNameByCiPipelineIdAndEnvId

func (mr *MockEnforcerUtilMockRecorder) GetEnvRBACNameByCiPipelineIdAndEnvId(ciPipelineId, envId interface{}) *gomock.Call

GetEnvRBACNameByCiPipelineIdAndEnvId indicates an expected call of GetEnvRBACNameByCiPipelineIdAndEnvId.

func (*MockEnforcerUtilMockRecorder) GetHelmObject

func (mr *MockEnforcerUtilMockRecorder) GetHelmObject(appId, envId interface{}) *gomock.Call

GetHelmObject indicates an expected call of GetHelmObject.

func (*MockEnforcerUtilMockRecorder) GetHelmObjectByAppNameAndEnvId

func (mr *MockEnforcerUtilMockRecorder) GetHelmObjectByAppNameAndEnvId(appName, envId interface{}) *gomock.Call

GetHelmObjectByAppNameAndEnvId indicates an expected call of GetHelmObjectByAppNameAndEnvId.

func (*MockEnforcerUtilMockRecorder) GetHelmObjectByProjectIdAndEnvId

func (mr *MockEnforcerUtilMockRecorder) GetHelmObjectByProjectIdAndEnvId(teamId, envId interface{}) *gomock.Call

GetHelmObjectByProjectIdAndEnvId indicates an expected call of GetHelmObjectByProjectIdAndEnvId.

func (*MockEnforcerUtilMockRecorder) GetProjectAdminRBACNameBYAppName

func (mr *MockEnforcerUtilMockRecorder) GetProjectAdminRBACNameBYAppName(appName interface{}) *gomock.Call

GetProjectAdminRBACNameBYAppName indicates an expected call of GetProjectAdminRBACNameBYAppName.

func (*MockEnforcerUtilMockRecorder) GetRBACNameForClusterEntity

func (mr *MockEnforcerUtilMockRecorder) GetRBACNameForClusterEntity(clusterName, resourceIdentifier interface{}) *gomock.Call

GetRBACNameForClusterEntity indicates an expected call of GetRBACNameForClusterEntity.

func (*MockEnforcerUtilMockRecorder) GetRbacObjectsByAppIds

func (mr *MockEnforcerUtilMockRecorder) GetRbacObjectsByAppIds(appIds interface{}) *gomock.Call

GetRbacObjectsByAppIds indicates an expected call of GetRbacObjectsByAppIds.

func (*MockEnforcerUtilMockRecorder) GetRbacObjectsForAllApps

func (mr *MockEnforcerUtilMockRecorder) GetRbacObjectsForAllApps() *gomock.Call

GetRbacObjectsForAllApps indicates an expected call of GetRbacObjectsForAllApps.

func (*MockEnforcerUtilMockRecorder) GetRbacObjectsForAllAppsAndEnvironments

func (mr *MockEnforcerUtilMockRecorder) GetRbacObjectsForAllAppsAndEnvironments() *gomock.Call

GetRbacObjectsForAllAppsAndEnvironments indicates an expected call of GetRbacObjectsForAllAppsAndEnvironments.

func (*MockEnforcerUtilMockRecorder) GetRbacObjectsForAllAppsWithMatchingAppName

func (mr *MockEnforcerUtilMockRecorder) GetRbacObjectsForAllAppsWithMatchingAppName(appNameMatch interface{}) *gomock.Call

GetRbacObjectsForAllAppsWithMatchingAppName indicates an expected call of GetRbacObjectsForAllAppsWithMatchingAppName.

func (*MockEnforcerUtilMockRecorder) GetRbacObjectsForAllAppsWithTeamID

func (mr *MockEnforcerUtilMockRecorder) GetRbacObjectsForAllAppsWithTeamID(teamID interface{}) *gomock.Call

GetRbacObjectsForAllAppsWithTeamID indicates an expected call of GetRbacObjectsForAllAppsWithTeamID.

func (*MockEnforcerUtilMockRecorder) GetTeamAndEnvironmentRbacObjectByCDPipelineId

func (mr *MockEnforcerUtilMockRecorder) GetTeamAndEnvironmentRbacObjectByCDPipelineId(pipelineId interface{}) *gomock.Call

GetTeamAndEnvironmentRbacObjectByCDPipelineId indicates an expected call of GetTeamAndEnvironmentRbacObjectByCDPipelineId.

func (*MockEnforcerUtilMockRecorder) GetTeamEnvRBACNameByAppId

func (mr *MockEnforcerUtilMockRecorder) GetTeamEnvRBACNameByAppId(appId, envId interface{}) *gomock.Call

GetTeamEnvRBACNameByAppId indicates an expected call of GetTeamEnvRBACNameByAppId.

func (*MockEnforcerUtilMockRecorder) GetTeamRBACByCiPipelineId

func (mr *MockEnforcerUtilMockRecorder) GetTeamRBACByCiPipelineId(pipelineId interface{}) *gomock.Call

GetTeamRBACByCiPipelineId indicates an expected call of GetTeamRBACByCiPipelineId.

func (*MockEnforcerUtilMockRecorder) GetTeamRbacObjectByCiPipelineId

func (mr *MockEnforcerUtilMockRecorder) GetTeamRbacObjectByCiPipelineId(ciPipelineId interface{}) *gomock.Call

GetTeamRbacObjectByCiPipelineId indicates an expected call of GetTeamRbacObjectByCiPipelineId.

Jump to

Keyboard shortcuts

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