peer

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package peer contains the logic to enable a peering towards a remote cluster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	*factory.Factory

	ClusterName string
	Timeout     time.Duration
	Incoming    bool
}

Options encapsulates the arguments of the peer command.

func (*Options) Run

func (o *Options) Run(ctx context.Context) error

Run implements the peer out-of-band command.

func (*Options) Wait

func (o *Options) Wait(ctx context.Context, remoteClusterID *discoveryv1alpha1.ClusterIdentity) error

Wait waits for the peering to the remote cluster to be fully enabled.

Jump to

Keyboard shortcuts

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