Documentation ¶
Index ¶
- func Setup(mgr ctrl.Manager, o controller.Options) error
- type RoleCollectionMaintainer
- type RoleMaintainerMock
- func (r *RoleMaintainerMock) Create(ctx context.Context, params v1alpha1.RoleCollectionParameters) (string, error)
- func (r *RoleMaintainerMock) Delete(ctx context.Context, roleCollectionName string) error
- func (r *RoleMaintainerMock) GenerateObservation(ctx context.Context, roleCollectionName string) (v1alpha1.RoleCollectionObservation, error)
- func (r *RoleMaintainerMock) NeedsCreation(collection v1alpha1.RoleCollectionObservation) bool
- func (r *RoleMaintainerMock) NeedsUpdate(params v1alpha1.RoleCollectionParameters, ...) bool
- func (r *RoleMaintainerMock) Update(ctx context.Context, roleCollectionName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RoleCollectionMaintainer ¶
type RoleCollectionMaintainer interface { GenerateObservation(ctx context.Context, roleCollectionName string) (v1alpha1.RoleCollectionObservation, error) NeedsCreation(collection v1alpha1.RoleCollectionObservation) bool NeedsUpdate(params v1alpha1.RoleCollectionParameters, observation v1alpha1.RoleCollectionObservation) bool Create(ctx context.Context, params v1alpha1.RoleCollectionParameters) (string, error) Update(ctx context.Context, roleCollectionName string, params v1alpha1.RoleCollectionParameters, obs v1alpha1.RoleCollectionObservation) error Delete(ctx context.Context, roleCollectionName string) error }
type RoleMaintainerMock ¶
type RoleMaintainerMock struct { // for verification CalledIdentifier string // contains filtered or unexported fields }
RoleMaintainerMock is a mock implementation of RoleCollectionMaintainer interface returns stubed values and records called identifier to most methods
func (*RoleMaintainerMock) Create ¶
func (r *RoleMaintainerMock) Create(ctx context.Context, params v1alpha1.RoleCollectionParameters) (string, error)
func (*RoleMaintainerMock) Delete ¶
func (r *RoleMaintainerMock) Delete(ctx context.Context, roleCollectionName string) error
func (*RoleMaintainerMock) GenerateObservation ¶
func (r *RoleMaintainerMock) GenerateObservation(ctx context.Context, roleCollectionName string) (v1alpha1.RoleCollectionObservation, error)
func (*RoleMaintainerMock) NeedsCreation ¶
func (r *RoleMaintainerMock) NeedsCreation(collection v1alpha1.RoleCollectionObservation) bool
func (*RoleMaintainerMock) NeedsUpdate ¶
func (r *RoleMaintainerMock) NeedsUpdate(params v1alpha1.RoleCollectionParameters, observation v1alpha1.RoleCollectionObservation) bool
func (*RoleMaintainerMock) Update ¶
func (r *RoleMaintainerMock) Update(ctx context.Context, roleCollectionName string, params v1alpha1.RoleCollectionParameters, obs v1alpha1.RoleCollectionObservation) error
Click to show internal directories.
Click to hide internal directories.