Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build(ctx context.Context) (*Operation, error)
- func (b *Builder) ComponentRegistry(registry model.RegistryAccess) *Builder
- func (b *Builder) Scheme(s *runtime.Scheme) *Builder
- func (b *Builder) WithEventRecorder(er record.EventRecorder) *Builder
- func (b *Builder) WithLsUncachedClient(lsUncachedClient client.Client) *Builder
- type Operation
- func (o *Operation) ComponentsRegistry() model.RegistryAccess
- func (o *Operation) Copy() *Operation
- func (o *Operation) EventRecorder() record.EventRecorder
- func (o *Operation) LsUncachedClient() client.Client
- func (o *Operation) Scheme() *runtime.Scheme
- func (o *Operation) SetComponentsRegistry(registry model.RegistryAccess) *Operation
- func (o *Operation) WriterToLsUncachedClient() *read_write_layer.Writer
- type RegistriesAccessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder implements the builder-pattern to craft the operation
func (*Builder) ComponentRegistry ¶
func (b *Builder) ComponentRegistry(registry model.RegistryAccess) *Builder
ComponentRegistry sets the component registry.
func (*Builder) WithEventRecorder ¶
func (b *Builder) WithEventRecorder(er record.EventRecorder) *Builder
WithEventRecorder sets a event recorder.
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
Operation is the type that is used to share common operational data across the landscaper reconciler
func NewOperation ¶
func NewOperation(scheme *runtime.Scheme, recorder record.EventRecorder, lsUncachedClient client.Client) *Operation
NewOperation creates a new internal installation Operation object. DEPRECATED: use the Builder instead.
func (*Operation) ComponentsRegistry ¶
func (o *Operation) ComponentsRegistry() model.RegistryAccess
ComponentsRegistry returns a component registry
func (*Operation) Copy ¶
Copy creates a new operation with the same client, scheme and component resolver
func (*Operation) EventRecorder ¶
func (o *Operation) EventRecorder() record.EventRecorder
EventRecorder returns an event recorder to create events.
func (*Operation) LsUncachedClient ¶
Client returns a controller runtime client.Registry
func (*Operation) SetComponentsRegistry ¶
func (o *Operation) SetComponentsRegistry(registry model.RegistryAccess) *Operation
SetComponentsRegistry injects a component blueprintsRegistry into the operation
func (*Operation) WriterToLsUncachedClient ¶
func (o *Operation) WriterToLsUncachedClient() *read_write_layer.Writer
type RegistriesAccessor ¶
type RegistriesAccessor interface { // ComponentsRegistry returns a components registry instance. ComponentsRegistry() ctf.ComponentResolver }
RegistriesAccessor is a getter interface for available registries.