remote

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package remote contains the remote connector for the FSM multi-cluster

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Background

type Background struct {
	Context   *cctx.ConnectorContext
	Connector *Connector
}

Background is the background struct for the remote connector

func NewBackground

func NewBackground(cluster *mcsv1alpha1.Cluster, kubeconfig *rest.Config, mc configurator.Configurator, broker *messaging.Broker) (*Background, error)

NewBackground creates a new background process for a cluster

func (*Background) Run

func (b *Background) Run() error

Run starts the background process

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

Connector is the main struct for the remote connector

func NewConnector

func NewConnector(ctx context.Context, controlPlaneBroker *messaging.Broker) (*Connector, error)

NewConnector creates a new remote connector

func (*Connector) Run

func (c *Connector) Run(stopCh <-chan struct{}) error

Run starts the connector

func (*Connector) ServiceImportExists

func (c *Connector) ServiceImportExists(svcExp *mcsv1alpha1.ServiceExport) bool

ServiceImportExists checks if the ServiceImport exists

func (*Connector) ValidateServiceExport

func (c *Connector) ValidateServiceExport(svcExp *mcsv1alpha1.ServiceExport, service *corev1.Service) error

ValidateServiceExport validates the ServiceExport and returns error if there's any conflict

Jump to

Keyboard shortcuts

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