Documentation
¶
Index ¶
- Constants
- type Controller
- type ControllerBuilder
- type ControllerManager
- type ControllerManagerBuilder
- func (cm *ControllerManagerBuilder) Build() ControllerManager
- func (cm *ControllerManagerBuilder) WithConfig(config *rest.Config) *ControllerManagerBuilder
- func (cm *ControllerManagerBuilder) WithOptions(scheme *runtime.Scheme) *ControllerManagerBuilder
- func (cm *ControllerManagerBuilder) WithWatchConfiguration(wc *pb.UpdateConfigRequestMessage) *ControllerManagerBuilder
- func (cm *ControllerManagerBuilder) WithoutLeaderElection() *ControllerManagerBuilder
- type ManagerBuilder
- type ManagerEngine
- type ReconciliationEvent
- type ResourceControllerBuilder
- type WatchConfigReconciler
Constants ¶
View Source
const (
FINALIZER = "automation.pilot.sap.com/finalizer"
)
View Source
const (
OPERATOR_ID_ENV_VAR = "OPERATOR_ID"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
type ControllerBuilder ¶
type ControllerBuilder struct {
Controller
}
func CreateControllerBuilder ¶
func CreateControllerBuilder() *ControllerBuilder
func (*ControllerBuilder) Build ¶
func (cb *ControllerBuilder) Build(ctx context.Context, reconciler string) (Controller, error)
func (*ControllerBuilder) For ¶
func (cb *ControllerBuilder) For(r *pb.Resource) *ControllerBuilder
func (*ControllerBuilder) ManagedBy ¶
func (cb *ControllerBuilder) ManagedBy(m *ControllerManager) *ControllerBuilder
type ControllerManager ¶
type ControllerManager struct {
// contains filtered or unexported fields
}
func (*ControllerManager) CreateControllers ¶
func (m *ControllerManager) CreateControllers(ctx context.Context) error
func (*ControllerManager) GetClient ¶
func (m *ControllerManager) GetClient() client.Client
func (*ControllerManager) GetScheme ¶
func (m *ControllerManager) GetScheme() *runtime.Scheme
type ControllerManagerBuilder ¶
type ControllerManagerBuilder struct {
ControllerManager
}
func CreateManagerBuilder ¶
func CreateManagerBuilder() *ControllerManagerBuilder
func (*ControllerManagerBuilder) Build ¶
func (cm *ControllerManagerBuilder) Build() ControllerManager
func (*ControllerManagerBuilder) WithConfig ¶
func (cm *ControllerManagerBuilder) WithConfig(config *rest.Config) *ControllerManagerBuilder
func (*ControllerManagerBuilder) WithOptions ¶
func (cm *ControllerManagerBuilder) WithOptions(scheme *runtime.Scheme) *ControllerManagerBuilder
func (*ControllerManagerBuilder) WithWatchConfiguration ¶
func (cm *ControllerManagerBuilder) WithWatchConfiguration(wc *pb.UpdateConfigRequestMessage) *ControllerManagerBuilder
func (*ControllerManagerBuilder) WithoutLeaderElection ¶
func (cm *ControllerManagerBuilder) WithoutLeaderElection() *ControllerManagerBuilder
type ManagerBuilder ¶
type ManagerBuilder interface { WithConfig(config *rest.Config) *ControllerManagerBuilder WithOptions(scheme *runtime.Scheme, enableLeaderElection bool) *ControllerManagerBuilder WithoutLeaderElection() *ControllerManagerBuilder WithWatchConfiguration(wc *pb.UpdateConfigRequestMessage) *ControllerManagerBuilder Build() ControllerManager }
type ManagerEngine ¶
type ManagerEngine struct {
// contains filtered or unexported fields
}
func CreateManagerEngine ¶
func CreateManagerEngine(scheme *runtime.Scheme, config *rest.Config) *ManagerEngine
func (*ManagerEngine) ManagerStartedAtLeastOnce ¶
func (e *ManagerEngine) ManagerStartedAtLeastOnce() bool
func (*ManagerEngine) StartManager ¶
func (e *ManagerEngine) StartManager() error
func (*ManagerEngine) StopManager ¶
func (e *ManagerEngine) StopManager()
func (*ManagerEngine) WithContext ¶
func (e *ManagerEngine) WithContext()
func (*ManagerEngine) WithWatchConfiguration ¶
func (e *ManagerEngine) WithWatchConfiguration(wc *pb.UpdateConfigRequestMessage)
type ReconciliationEvent ¶
type ReconciliationEvent struct {
*pb.ClientMessage_ReconcileEvent
}
type ResourceControllerBuilder ¶
type ResourceControllerBuilder interface { For(r *pb.Resource) *ControllerBuilder ManagedBy(m *ControllerManager) *ControllerBuilder Build() Controller }
Click to show internal directories.
Click to hide internal directories.