handlers

package
Version: v0.11.20 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

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