resolver

package
v0.0.0-...-e372d8d Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 18 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 bool, found bool)

func (*Interface) PutEndpointSlice

func (i *Interface) PutEndpointSlice(endpointSlice *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