Documentation ¶
Index ¶
- Constants
- type Synchronizer
- func (s *Synchronizer) GetTemplatedBindingFromShadowSecret(svcSecret *core.Secret) (*templates.TemplatedBinding, error)
- func (s *Synchronizer) IsManaged(object meta.Object) bool
- func (s *Synchronizer) SynchronizeBinding(key string) (bool, runtime.Object, error)
- func (s *Synchronizer) SynchronizeInstance(key string) (bool, runtime.Object, error)
- func (s *Synchronizer) SynchronizeSecret(key string) (bool, runtime.Object, error)
Constants ¶
const ( // MessageResourceExists is the message used for Events when a resource // fails to sync due to a Deployment already existing MessageResourceExists = "Resource %q already exists and is not managed by the Templates controller" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Synchronizer ¶
type Synchronizer struct {
// contains filtered or unexported fields
}
func NewSynchronizer ¶
func NewSynchronizer(coreSDK *coresdk.SDK, templateSDK *servicecatalogtempltesdk.SDK, svcatSDK *servicecatalogsdk.SDK) *Synchronizer
func (*Synchronizer) GetTemplatedBindingFromShadowSecret ¶
func (s *Synchronizer) GetTemplatedBindingFromShadowSecret(svcSecret *core.Secret) (*templates.TemplatedBinding, error)
func (*Synchronizer) IsManaged ¶
func (s *Synchronizer) IsManaged(object meta.Object) bool
IsManaged determines if a resource is managed by a shadow resource.
func (*Synchronizer) SynchronizeBinding ¶
SynchronizeBinding accepts an binding key (namespace/name) and attempts to synchronize it with a service catalog binding. * ok - Synchronization was successful. * resource - The resource. * error - Fatal synchronization error.
func (*Synchronizer) SynchronizeInstance ¶
SynchronizeInstance accepts an instance key (namespace/name) and attempts to synchronize it with a service catalog instance. * ok - Synchronization was successful. * resource - The resource. * error - Fatal synchronization error.
func (*Synchronizer) SynchronizeSecret ¶
SynchronizeSecret accepts a secret key (namespace/name) and attempts to synchronize the bound secret with the template secret. * ok - Synchronization was successful. * resource - The resource. * error - Fatal synchronization error.