Documentation
¶
Index ¶
Constants ¶
View Source
const RetryDeploymentResponseErrorMessage = "RetryGetDeploymentAuthorizationErrors"
RetryDeploymentResponseErrorMessage is the error message returned by a deployment authorization checker when it wants the deployment to be retried
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentAuthorizationChecker ¶
type DeploymentAuthorizationChecker interface {
// Check if the user has the required permissions to deploy the template
// If Authorization Error is received the authorization error message string is returned, and error is nil
// If string is empty and error is not nill, then non authorization error is received
// If string is empty and error is nil, then authorization is successful
GetDeploymentAuthorizationErrors(mpfCoreConfig domain.MPFConfig) (string, error)
}
type DeploymentAuthorizationCheckerCleaner ¶
type DeploymentAuthorizationCheckerCleaner interface {
DeploymentAuthorizationChecker
DeploymentCleaner
}
type DeploymentCleaner ¶
type MPFService ¶
type MPFService struct {
// contains filtered or unexported fields
}
func NewMPFService ¶
func NewMPFService(ctx context.Context, rgMgr ResourceGroupManager, spRoleAssgnMgr ServicePrincipalRolemAssignmentManager, deploymentAuthChkCln DeploymentAuthorizationCheckerCleaner, mpfConfig domain.MPFConfig, initialPermissionsToAdd []string, permissionsToAddToResult []string, autoAddReadPermissionForEachWrite bool, autoAddDeletePermissionForEachWrite bool, autoCreateResourceGroup bool) *MPFService
func (*MPFService) CleanUpResources ¶
func (s *MPFService) CleanUpResources()
func (*MPFService) GetMinimumPermissionsRequired ¶
func (s *MPFService) GetMinimumPermissionsRequired() (domain.MPFResult, error)
type ResourceGroupManager ¶
type ServicePrincipalRolemAssignmentManager ¶
type ServicePrincipalRolemAssignmentManager interface {
ServicePrincipalAssignmentModifier
CustomRoleCreatorModifier
}
Click to show internal directories.
Click to hide internal directories.