peer

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	LocalFactory   *factory.Factory
	RemoteFactory  *factory.Factory
	Timeout        time.Duration
	SkipValidation bool

	// Networking options
	NetworkingDisabled          bool
	ServerServiceLocation       *argsutils.StringEnum
	ServerServiceType           *argsutils.StringEnum
	ServerServicePort           int32
	ServerServiceNodePort       int32
	ServerServiceLoadBalancerIP string
	ClientConnectAddress        string
	ClientConnectPort           int32
	MTU                         int

	// Authentication options
	CreateResourceSlice bool
	ResourceSliceClass  string
	InBand              bool
	ProxyURL            string

	// Offloading options
	CreateVirtualNode bool
	CPU               string
	Memory            string
	Pods              string
}

Options encapsulates the arguments of the peer command.

func NewOptions added in v1.0.0

func NewOptions(localFactory *factory.Factory) *Options

NewOptions returns a new Options struct.

func (*Options) RunPeer added in v1.0.0

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

RunPeer implements the peer command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳