Documentation ¶
Index ¶
- func New(mgr ctrl.Manager, cache *Cache, rec Reconciler) error
- type Cache
- func (c *Cache) Get(ctx context.Context, comp *SynthesisRef, ref *resource.Ref) (*Resource, bool)
- func (c *Cache) GetDefiningCRD(ctx context.Context, syn *SynthesisRef, gk schema.GroupKind) (*Resource, bool)
- func (c *Cache) RangeByReadinessGroup(ctx context.Context, comp *SynthesisRef, group int, dir RangeDirection) []*Resource
- type Client
- type RangeDirection
- type Reconciler
- type Request
- type Resource
- type SynthesisRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶ added in v0.0.4
type Cache struct {
// contains filtered or unexported fields
}
Cache maintains a fast index of (ResourceRef + Composition + Synthesis) -> Resource.
func (*Cache) GetDefiningCRD ¶ added in v0.0.9
func (*Cache) RangeByReadinessGroup ¶ added in v0.0.7
func (c *Cache) RangeByReadinessGroup(ctx context.Context, comp *SynthesisRef, group int, dir RangeDirection) []*Resource
type Client ¶
type Client interface { Get(ctx context.Context, syn *SynthesisRef, res *resource.Ref) (*resource.Resource, bool) RangeByReadinessGroup(ctx context.Context, syn *SynthesisRef, group int, dir RangeDirection) []*Resource GetDefiningCRD(ctx context.Context, syn *SynthesisRef, gk schema.GroupKind) (*Resource, bool) }
Client provides read/write access to a collection of reconstituted resources.
type RangeDirection ¶ added in v0.0.7
type RangeDirection bool
var ( RangeAsc RangeDirection = true RangeDesc RangeDirection = false )
type Reconciler ¶
Reconciler is implemented by types that can reconcile individual, reconstituted resources.
type Request ¶
type Request struct { Resource resource.Ref Composition types.NamespacedName }
Request is like controller-runtime reconcile.Request but for reconstituted resources. https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/reconcile#Request
type SynthesisRef ¶ added in v0.0.6
type SynthesisRef struct {
CompositionName, Namespace, UUID string
}
SynthesisRef refers to a specific synthesis of a composition.
func NewSynthesisRef ¶ added in v0.0.6
func NewSynthesisRef(comp *apiv1.Composition) *SynthesisRef
Click to show internal directories.
Click to hide internal directories.