resolver

package
v0.0.0-...-b170865 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(r *Interface) *controller

Types

type ClusterStatus

type ClusterStatus interface {
	IsConnected(clusterID string) bool
	GetLocalClusterID() string
}

type DNSRecord

type DNSRecord struct {
	IP          string
	Ports       []mcsv1a1.ServicePort
	HostName    string
	ClusterName string
}

type Interface

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

func New

func New(clusterStatus ClusterStatus, client dynamic.Interface) *Interface

func (*Interface) GetDNSRecords

func (i *Interface) GetDNSRecords(namespace, name, clusterID, hostname string) (records []DNSRecord, isHeadless, found bool)

func (*Interface) PutEndpointSlices

func (i *Interface) PutEndpointSlices(endpointSlices ...*discovery.EndpointSlice) bool

func (*Interface) PutServiceImport

func (i *Interface) PutServiceImport(serviceImport *mcsv1a1.ServiceImport)

func (*Interface) RemoveEndpointSlice

func (i *Interface) RemoveEndpointSlice(endpointSlice *discovery.EndpointSlice)

func (*Interface) RemoveServiceImport

func (i *Interface) RemoveServiceImport(serviceImport *mcsv1a1.ServiceImport)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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