Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConnectionDetailsFetcher ¶
type APIConnectionDetailsFetcher struct {
// contains filtered or unexported fields
}
APIConnectionDetailsFetcher fetches the connection secret of given composed resource if it has a connection secret reference.
func (*APIConnectionDetailsFetcher) Fetch ¶
func (cdf *APIConnectionDetailsFetcher) Fetch(ctx context.Context, cd resource.Composed, t v1alpha1.ComposedTemplate) (managed.ConnectionDetails, error)
Fetch returns the connection secret details of composed resource.
type Composer ¶
type Composer struct {
// contains filtered or unexported fields
}
An Composer composes infrastructure resources in a Kubernetes API server.
func NewComposer ¶
func NewComposer(kube client.Client, opts ...ComposerOption) *Composer
NewComposer returns a new Composer that composes infrastructure resources in a Kubernetes API server.
type ComposerOption ¶
type ComposerOption func(*Composer)
ComposerOption configures the Composer object.
func WithClientApplicator ¶
func WithClientApplicator(ca resource.ClientApplicator) ComposerOption
WithClientApplicator returns a ComposerOption that changes the ClientApplicator of Composer.
func WithConfigurator ¶
func WithConfigurator(c Configurator) ComposerOption
WithConfigurator returns a ComposerOption that changes the Configurator of Composer.
func WithConnectionDetailFetcher ¶
func WithConnectionDetailFetcher(cdf ConnectionDetailsFetcher) ComposerOption
WithConnectionDetailFetcher returns a ComposerOption that changes the ConnectionDetailsFetcher of Composer.
func WithOverlayApplicator ¶
func WithOverlayApplicator(oa OverlayApplicator) ComposerOption
WithOverlayApplicator returns a ComposerOption that changes the OverlayApplicator of Composer.
type Configurator ¶
type Configurator interface {
Configure(cp resource.Composite, cd resource.Composed, t v1alpha1.ComposedTemplate) error
}
Configurator is used to configure the Composed resource.
type ConfigureFn ¶
type ConfigureFn func(cp resource.Composite, cd resource.Composed, t v1alpha1.ComposedTemplate) error
ConfigureFn is a function that implements Configurator interface.
func (ConfigureFn) Configure ¶
func (c ConfigureFn) Configure(cp resource.Composite, cd resource.Composed, t v1alpha1.ComposedTemplate) error
Configure calls ConfigureFn.
type ConnectionDetailsFetcher ¶
type ConnectionDetailsFetcher interface {
Fetch(ctx context.Context, cd resource.Composed, t v1alpha1.ComposedTemplate) (managed.ConnectionDetails, error)
}
ConnectionDetailsFetcher fetches the connection details of the Composed resource.
type DefaultConfigurator ¶
type DefaultConfigurator struct{}
DefaultConfigurator configures the composed resource with given raw template and metadata information from composite resource.
func (*DefaultConfigurator) Configure ¶
func (*DefaultConfigurator) Configure(cp resource.Composite, cd resource.Composed, t v1alpha1.ComposedTemplate) error
Configure applies the raw template and sets name and generateName.
type DefaultOverlayApplicator ¶
type DefaultOverlayApplicator struct{}
DefaultOverlayApplicator applies patches to the composed resource using the values on Composite resource and field bindings in ComposedTemplate.
func (*DefaultOverlayApplicator) Overlay ¶
func (*DefaultOverlayApplicator) Overlay(cp resource.Composite, cd resource.Composed, t v1alpha1.ComposedTemplate) error
Overlay applies patches to composed resource.
type FetchFn ¶
type FetchFn func(ctx context.Context, cd resource.Composed, t v1alpha1.ComposedTemplate) (managed.ConnectionDetails, error)
FetchFn is a function that implements the ConnectionDetailsFetcher interface.
type Observation ¶
type Observation struct { Ref corev1.ObjectReference ConnectionDetails managed.ConnectionDetails Ready bool }
Observation is the result of composed reconciliation.
type OverlayApplicator ¶
type OverlayApplicator interface {
Overlay(cp resource.Composite, cd resource.Composed, t v1alpha1.ComposedTemplate) error
}
OverlayApplicator is used to apply an overlay at each reconcile.