federation

package
v0.0.0-...-0bd7e3a Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnleashFederationInstance

func UnleashFederationInstance(unleash *unleashv1.Unleash, token string) *pb.Instance

Types

type Handler

type Handler func(ctx context.Context, remoteUnleash []*unleashv1.RemoteUnleash, adminSecret *corev1.Secret, clusters []string, status pb.Status) error

type Publisher

type Publisher interface {
	Publish(ctx context.Context, unleash *unleashv1.Unleash, apiToken string) error
	Close() error
}

func NewPublisher

func NewPublisher(client *pubsub.Client, topic *pubsub.Topic) Publisher

type Subscriber

type Subscriber interface {
	Subscribe(ctx context.Context, handler Handler) error
	Close() error
}

func NewSubscriber

func NewSubscriber(client *pubsub.Client, subscription *pubsub.Subscription, namespace string) Subscriber

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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