k8sctrl

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resources = struct {
	DNSEndpoint *ResourceWithLookup
}{
	DNSEndpoint: &ResourceWithLookup{
		Name: "DNSEndpoint",
	},
}

Functions

This section is empty.

Types

type KubeController

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

func NewKubeController

func NewKubeController(ctx context.Context, c *dnsendpoint.ExtDNSClient, label string) *KubeController

func (*KubeController) HasSynced

func (ctrl *KubeController) HasSynced() bool

HasSynced returns true if all controllers have been synced

func (*KubeController) Run

func (ctrl *KubeController) Run()

type LocalDNSEndpoint

type LocalDNSEndpoint struct {
	Targets []string
	TTL     endpoint.TTL
	Labels  map[string]string
	DNSName string
}

func (LocalDNSEndpoint) String

func (lep LocalDNSEndpoint) String() string

type LookupEndpoint

type LookupEndpoint func(indexKey string, clientIP net.IP, geoDataFilePath string, geoDataFieldPath ...string) (result LocalDNSEndpoint)

type ResourceWithLookup

type ResourceWithLookup struct {
	Name   string
	Lookup LookupEndpoint
}

Jump to

Keyboard shortcuts

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