hostnameRecords

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostnameRecords

type HostnameRecords struct {
	Path   string
	Domain string
}

func NewHostnameRecords

func NewHostnameRecords(hostsFilepath, domain string) (*HostnameRecords, error)

func (*HostnameRecords) CreateOrUpdateHostnameRecord

func (h *HostnameRecords) CreateOrUpdateHostnameRecord(pod *api.Pod) error

func (*HostnameRecords) DeleteHostnameRecord

func (h *HostnameRecords) DeleteHostnameRecord(pod *api.Pod) error

type HostnameWatcher

type HostnameWatcher struct {
	Clientset *kubernetes.Clientset
	Hosts     *HostnameRecords
}

func NewHostnameWatcher

func NewHostnameWatcher(restclient *restclient.Config, hostsPath, domain string) (h *HostnameWatcher, err error)

func (*HostnameWatcher) Run

func (h *HostnameWatcher) Run(stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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