handlers

package
v0.11.25 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const BROKER_PAYLOAD_ERROR = "could not extract broker payload"
View Source
const FIND_BROKER_WITH_NAME_FORMAT = "Attempting to find platform broker with name %s in platform..."
View Source
const PLATFORM_CREDENTIALS_UPDATE_ERROR = "Could not update broker platform credentials for broker (%s): %s"
View Source
const VISIBILITY_PAYLOAD_ERROR = "error validating visibility payload"

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerResourceNotificationsHandler

type BrokerResourceNotificationsHandler struct {
	SMClient       sm.Client
	BrokerClient   platform.BrokerClient
	CatalogFetcher platform.CatalogFetcher

	DefaultBrokerUsername string
	DefaultBrokerPassword string

	ProxyPrefix string
	SMPath      string

	BrokerBlacklist          []string
	TakeoverEnabled          bool
	BrokerCredentialsEnabled bool
}

BrokerResourceNotificationsHandler handles notifications for brokers

func (*BrokerResourceNotificationsHandler) OnCreate

func (bnh *BrokerResourceNotificationsHandler) OnCreate(ctx context.Context, notification *types.Notification)

OnCreate creates brokers from the specified notification payload by invoking the proper platform clients

func (*BrokerResourceNotificationsHandler) OnDelete

func (bnh *BrokerResourceNotificationsHandler) OnDelete(ctx context.Context, notification *types.Notification)

OnDelete deletes brokers from the provided notification payload by invoking the proper platform clients

func (*BrokerResourceNotificationsHandler) OnUpdate

func (bnh *BrokerResourceNotificationsHandler) OnUpdate(ctx context.Context, notification *types.Notification)

OnUpdate modifies brokers from the specified notification payload by invoking the proper platform clients

type VisibilityResourceNotificationsHandler

type VisibilityResourceNotificationsHandler struct {
	VisibilityClient platform.VisibilityClient

	ProxyPrefix     string
	BrokerBlacklist []string
	BrokerClient    platform.BrokerClient
	Resyncer        reconcile.Resyncer
}

VisibilityResourceNotificationsHandler handles notifications for visibilities

func (*VisibilityResourceNotificationsHandler) OnCreate

func (vnh *VisibilityResourceNotificationsHandler) OnCreate(ctx context.Context, notification *types.Notification)

OnCreate creates visibilities from the specified notification payload by invoking the proper platform clients

func (*VisibilityResourceNotificationsHandler) OnDelete

func (vnh *VisibilityResourceNotificationsHandler) OnDelete(ctx context.Context, notification *types.Notification)

OnDelete deletes visibilities from the provided notification payload by invoking the proper platform clients

func (*VisibilityResourceNotificationsHandler) OnUpdate

func (vnh *VisibilityResourceNotificationsHandler) OnUpdate(ctx context.Context, notification *types.Notification)

OnUpdate modifies visibilities from the specified notification payload by invoking the proper platform clients

Jump to

Keyboard shortcuts

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