Documentation
¶
Overview ¶
Package privileges handles privilege validation rule reconciliation.
Index ¶
- Variables
- type PrivilegeValidationService
- func (s *PrivilegeValidationService) ReconcileEntityPrivilegeRule(rule v1alpha1.EntityPrivilegeValidationRule, finder *find.Finder) (*types.ValidationRuleResult, error)
- func (s *PrivilegeValidationService) ReconcileRolePrivilegesRule(rule v1alpha1.GenericRolePrivilegeValidationRule, driver *vsphere.CloudDriver, ...) (*types.ValidationRuleResult, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// GetUserAndGroupPrincipals is defined to enable monkey patching the getUserAndGroupPrincipals function in integration tests
GetUserAndGroupPrincipals = getUserAndGroupPrincipals
)
Functions ¶
This section is empty.
Types ¶
type PrivilegeValidationService ¶
type PrivilegeValidationService struct {
// contains filtered or unexported fields
}
PrivilegeValidationService is a service that validates user privileges
func NewPrivilegeValidationService ¶
func NewPrivilegeValidationService(log logr.Logger, driver *vsphere.CloudDriver, datacenter string, authManager *object.AuthorizationManager, userName string) *PrivilegeValidationService
NewPrivilegeValidationService creates a new PrivilegeValidationService
func (*PrivilegeValidationService) ReconcileEntityPrivilegeRule ¶
func (s *PrivilegeValidationService) ReconcileEntityPrivilegeRule(rule v1alpha1.EntityPrivilegeValidationRule, finder *find.Finder) (*types.ValidationRuleResult, error)
ReconcileEntityPrivilegeRule reconciles the entity privilege rule
func (*PrivilegeValidationService) ReconcileRolePrivilegesRule ¶
func (s *PrivilegeValidationService) ReconcileRolePrivilegesRule(rule v1alpha1.GenericRolePrivilegeValidationRule, driver *vsphere.CloudDriver, authManager *object.AuthorizationManager) (*types.ValidationRuleResult, error)
ReconcileRolePrivilegesRule reconciles the role privilege rule
Click to show internal directories.
Click to hide internal directories.