feed

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed struct {
	// FeedDNSMap is a map of hostnames with their corresponding IP addresses
	FeedDNSMap map[string]string
}

Feed contains everything a feed uses

type If

type If interface {
	Update() error
	GetDNSMap() map[string]string
}

If is an interface to enable different sources to obtain of host/ip entries

type K8sAPI

type K8sAPI struct {
	Feed
	URI         string
	Token       string
	InsecureTLS bool
}

K8sAPI defines the k8s api feed

func NewK8sAPI

func NewK8sAPI(config *config.FeedConfig) *K8sAPI

NewK8sAPI creates a new feed using the k8s API

func (*K8sAPI) GetDNSMap

func (k8s *K8sAPI) GetDNSMap() map[string]string

GetDNSMap returns the feeds DNS map

func (*K8sAPI) Update

func (k8s *K8sAPI) Update() error

Update triggers an update of the DNS cache

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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