dns

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationInfo

type AnnotationInfo struct {
	ServiceName string `json:"service_name"`
}

type AppInfo

type AppInfo struct {
	PodInfos []PodInfo `json:"PodInfos"`
}

type Container

type Container struct {
	NodeIP      string `json:"NodeIp"`
	ContainerIP string `json:"ContainerIp"`
}

type CoreInfo

type CoreInfo map[string]AppInfo

type CoreInfoWatcher

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

func NewCoreInfoWatcher

func NewCoreInfoWatcher(notify chan interface{}) *CoreInfoWatcher

func (*CoreInfoWatcher) Watch

func (w *CoreInfoWatcher) Watch()

type Creator

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

Creator creates dns data file and calls reloading of tinydns

func NewCreator

func NewCreator(notify chan interface{}) *Creator

func (*Creator) CreateDNS

func (c *Creator) CreateDNS()

type Depends

type Depends map[string]map[string]map[string]PortalInfo

type DependsWatcher

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

DependsWatcher has data which is the map as follows: (portal DEPLOYD_POD_NAME)=>(node HOSTNAME=>(APP name using service=>PortalInfo))

func NewDependsWatcher

func NewDependsWatcher(notify chan interface{}) *DependsWatcher

func (*DependsWatcher) Watch

func (w *DependsWatcher) Watch()

type Fqdns

type Fqdns map[string]string

type FqdnsWatcher

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

FqdnsWatcher

func NewFqdnsWatcher

func NewFqdnsWatcher(notify chan interface{}) *FqdnsWatcher

func (*FqdnsWatcher) Watch

func (w *FqdnsWatcher) Watch()

type Node

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

func NewNode

func NewNode() *Node

func (*Node) Add

func (node *Node) Add(ip string) int

func (*Node) GetID

func (node *Node) GetID(ip string) string

type PodInfo

type PodInfo struct {
	InstanceNo int         `json:"InstanceNo"`
	Containers []Container `json:"ContainerInfos"`
}

type PortalContainer

type PortalContainer struct {
	NodeIP      string `json:"NodeIP"`
	ContainerIP string `json:"IP"`
}

type PortalInfo

type PortalInfo struct {
	Annotation string            `json:"Annotation"`
	Containers []PortalContainer `json:"Containers"`
}

Jump to

Keyboard shortcuts

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