exporter

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToManager

func AddToManager(cfg Config) error

func GetEndpointsOfHeadlessService added in v0.2.0

func GetEndpointsOfHeadlessService(cli client.Client, ctx context.Context, namespace, serviceName string, cluster ClusterInfo) ([]apis.Endpoint, error)

Types

type ByAddressType added in v0.2.0

type ByAddressType []discoveryv1.EndpointSlice

func (ByAddressType) Len added in v0.2.0

func (a ByAddressType) Len() int

func (ByAddressType) Less added in v0.2.0

func (a ByAddressType) Less(i, j int) bool

func (ByAddressType) Swap added in v0.2.0

func (a ByAddressType) Swap(i, j int)

type ByName added in v0.2.0

type ByName []apis.Endpoint

func (ByName) Len added in v0.2.0

func (a ByName) Len() int

func (ByName) Less added in v0.2.0

func (a ByName) Less(i, j int) bool

func (ByName) Swap added in v0.2.0

func (a ByName) Swap(i, j int)

type ClusterInfo added in v0.2.0

type ClusterInfo struct {
	Name, Region, Zone string
}

type Config

type Config struct {
	ClusterName string
	Zone        string
	Region      string

	Manager             manager.Manager
	ExportGlobalService types.ExportGlobalServiceFunc
	RevokeGlobalService types.RevokeGlobalServiceFunc
}

Jump to

Keyboard shortcuts

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