Documentation ¶
Index ¶
- type AccessRequestScope
- func (s *AccessRequestScope) Close(ctx context.Context) error
- func (s *AccessRequestScope) ControllerName() string
- func (s *AccessRequestScope) Name() string
- func (s *AccessRequestScope) PatchObject(ctx context.Context) error
- func (s *AccessRequestScope) SetFailureMessage(failureMessage *string)
- func (s *AccessRequestScope) SetSecretRef(secretRef *corev1.ObjectReference)
- type AccessRequestScopeParams
- type RoleRequestScope
- func (s *RoleRequestScope) Close(ctx context.Context) error
- func (s *RoleRequestScope) ControllerName() string
- func (s *RoleRequestScope) GetSelector() *metav1.LabelSelector
- func (s *RoleRequestScope) Name() string
- func (s *RoleRequestScope) PatchObject(ctx context.Context) error
- func (s *RoleRequestScope) SetClusterInfo(clusterInfo []libsveltosv1beta1.ClusterInfo)
- func (s *RoleRequestScope) SetFailureMessage(failureMessage *string)
- func (s *RoleRequestScope) SetMatchingClusterRefs(matchingClusterRefs []corev1.ObjectReference)
- type RoleRequestScopeParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessRequestScope ¶
type AccessRequestScope struct { logr.Logger AccessRequest *libsveltosv1beta1.AccessRequest // contains filtered or unexported fields }
AccessRequestScope defines the basic context for an actuator to operate upon.
func NewAccessRequestScope ¶
func NewAccessRequestScope(params AccessRequestScopeParams) (*AccessRequestScope, error)
NewAccessRequestScope creates a new AccessRequest Scope from the supplied parameters. This is meant to be called for each reconcile iteration.
func (*AccessRequestScope) Close ¶
func (s *AccessRequestScope) Close(ctx context.Context) error
Close closes the current scope persisting the AccessRequest configuration and status.
func (*AccessRequestScope) ControllerName ¶
func (s *AccessRequestScope) ControllerName() string
ControllerName returns the name of the controller that created the AccessRequestScope.
func (*AccessRequestScope) Name ¶
func (s *AccessRequestScope) Name() string
Name returns the AccessRequest name.
func (*AccessRequestScope) PatchObject ¶
func (s *AccessRequestScope) PatchObject(ctx context.Context) error
PatchObject persists the feature configuration and status.
func (*AccessRequestScope) SetFailureMessage ¶
func (s *AccessRequestScope) SetFailureMessage(failureMessage *string)
SetFailureMessage sets the failure message
func (*AccessRequestScope) SetSecretRef ¶
func (s *AccessRequestScope) SetSecretRef(secretRef *corev1.ObjectReference)
SetSecretRef sets the feature status.
type AccessRequestScopeParams ¶
type AccessRequestScopeParams struct { Client client.Client Logger logr.Logger AccessRequest *libsveltosv1beta1.AccessRequest ControllerName string }
AccessRequestScopeParams defines the input parameters used to create a new AccessRequest Scope.
type RoleRequestScope ¶ added in v0.4.0
type RoleRequestScope struct { logr.Logger RoleRequest *libsveltosv1beta1.RoleRequest // contains filtered or unexported fields }
RoleRequestScope defines the basic context for an actuator to operate upon.
func NewRoleRequestScope ¶ added in v0.4.0
func NewRoleRequestScope(params RoleRequestScopeParams) (*RoleRequestScope, error)
NewRoleRequestScope creates a new RoleRequest Scope from the supplied parameters. This is meant to be called for each reconcile iteration.
func (*RoleRequestScope) Close ¶ added in v0.4.0
func (s *RoleRequestScope) Close(ctx context.Context) error
Close closes the current scope persisting the RoleRequest configuration and status.
func (*RoleRequestScope) ControllerName ¶ added in v0.4.0
func (s *RoleRequestScope) ControllerName() string
ControllerName returns the name of the controller that created the RoleRequestScope.
func (*RoleRequestScope) GetSelector ¶ added in v0.4.0
func (s *RoleRequestScope) GetSelector() *metav1.LabelSelector
GetSelector returns the ClusterSelector
func (*RoleRequestScope) Name ¶ added in v0.4.0
func (s *RoleRequestScope) Name() string
Name returns the RoleRequest name.
func (*RoleRequestScope) PatchObject ¶ added in v0.4.0
func (s *RoleRequestScope) PatchObject(ctx context.Context) error
PatchObject persists the feature configuration and status.
func (*RoleRequestScope) SetClusterInfo ¶ added in v0.4.0
func (s *RoleRequestScope) SetClusterInfo(clusterInfo []libsveltosv1beta1.ClusterInfo)
SetClusterInfo sets the ClusterInfo status field
func (*RoleRequestScope) SetFailureMessage ¶ added in v0.4.0
func (s *RoleRequestScope) SetFailureMessage(failureMessage *string)
SetFailureMessage sets the failure message
func (*RoleRequestScope) SetMatchingClusterRefs ¶ added in v0.4.0
func (s *RoleRequestScope) SetMatchingClusterRefs(matchingClusterRefs []corev1.ObjectReference)
SetMatchingClusterRefs sets the MatchingClusterRefs status field
type RoleRequestScopeParams ¶ added in v0.4.0
type RoleRequestScopeParams struct { Client client.Client Logger logr.Logger RoleRequest *libsveltosv1beta1.RoleRequest ControllerName string }
RoleRequestScopeParams defines the input parameters used to create a new RoleRequest Scope.