k8sctrl

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 13 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) (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