operation

package
v0.104.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 NewBuilder

func NewBuilder() *Builder

NewBuilder creates a new operation builder.

func (*Builder) Build

func (b *Builder) Build(ctx context.Context) (*Operation, error)

Build creates a new operation.

func (*Builder) ComponentRegistry

func (b *Builder) ComponentRegistry(registry model.RegistryAccess) *Builder

ComponentRegistry sets the component registry.

func (*Builder) Scheme

func (b *Builder) Scheme(s *runtime.Scheme) *Builder

Scheme sets the kubernetes scheme.

func (*Builder) WithEventRecorder

func (b *Builder) WithEventRecorder(er record.EventRecorder) *Builder

WithEventRecorder sets a event recorder.

func (*Builder) WithLsUncachedClient

func (b *Builder) WithLsUncachedClient(lsUncachedClient client.Client) *Builder

Client sets the kubernetes client.

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

func (o *Operation) Copy() *Operation

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

func (o *Operation) LsUncachedClient() client.Client

Client returns a controller runtime client.Registry

func (*Operation) Scheme

func (o *Operation) Scheme() *runtime.Scheme

Scheme returns a kubernetes scheme

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.

Jump to

Keyboard shortcuts

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