cherry

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName string = "cherryservers"

	// ConsumerToken token for metal consumer
	ConsumerToken string = "cloud-provider-cherry"
)
View Source
const (
	DefaultAnnotationNodeASN   = "cherryservers.com/bgp-peers-{{n}}-node-asn"
	DefaultAnnotationPeerASN   = "cherryservers.com/bgp-peers-{{n}}-peer-asn"
	DefaultAnnotationPeerIP    = "cherryservers.com/bgp-peers-{{n}}-peer-ip"
	DefaultAnnotationSrcIP     = "cherryservers.com/bgp-peers-{{n}}-src-ip"
	DefaultAnnotationBGPPass   = "cherryservers.com/bgp-peers-{{n}}-bgp-pass"
	DefaultAnnotationFIPRegion = "cherryservers.com/fip-region"
)
View Source
const PeerPort int = 179

Variables

This section is empty.

Functions

Types

type BGPPeer

type BGPPeer struct {
	Address string
	Port    int
}

type Config

type Config struct {
	AuthToken               string  `json:"apiKey"`
	ProjectID               int     `json:"projectId"`
	BaseURL                 *string `json:"base-url,omitempty"`
	LoadBalancerSetting     string  `json:"loadbalancer"`
	Region                  string  `json:"region,omitempty"`
	AnnotationLocalASN      string  `json:"annotationLocalASN,omitempty"`
	AnnotationPeerASN       string  `json:"annotationPeerASN,omitempty"`
	AnnotationPeerIP        string  `json:"annotationPeerIP,omitempty"`
	AnnotationSrcIP         string  `json:"annotationSrcIP,omitempty"`
	AnnotationFIPRegion     string  `json:"annotationFIPRegion,omitempty"`
	FIPTag                  string  `json:"fipTag,omitempty"`
	APIServerPort           int32   `json:"apiServerPort,omitempty"`
	BGPNodeSelector         string  `json:"bgpNodeSelector,omitempty"`
	FIPHealthCheckUseHostIP bool    `json:"fipHealthCheckUseHostIP,omitempty"`
}

Config configuration for a provider, includes authentication token, project ID ID, and optional override URL to talk to a different Cherry Servers API endpoint

func (Config) Strings

func (c Config) Strings() []string

String converts the Config structure to a string, while masking hidden fields. Is not 100% a String() conversion, as it adds some intelligence to the output, and masks sensitive data

type NodeBGPInfo

type NodeBGPInfo struct {
	LocalASN  int
	RemoteASN int
	Peers     []BGPPeer
}

Directories

Path Synopsis
empty
empty loadbalancer that does nothing, but exists to enable bgp functionality
empty loadbalancer that does nothing, but exists to enable bgp functionality
kubevip
kubevip loadbalancer that does nothing, but exists to enable bgp functionality
kubevip loadbalancer that does nothing, but exists to enable bgp functionality

Jump to

Keyboard shortcuts

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