servicecatalogtemplates

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
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

func (s *Synchronizer) SynchronizeBinding(key string) (bool, runtime.Object, error)

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

func (s *Synchronizer) SynchronizeInstance(key string) (bool, runtime.Object, error)

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

func (s *Synchronizer) SynchronizeSecret(key string) (bool, runtime.Object, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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