rolecollection

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(mgr ctrl.Manager, o controller.Options) error

Setup adds a controller that reconciles RoleCollection managed resources.

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 (*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 (*RoleMaintainerMock) Update

Jump to

Keyboard shortcuts

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