controller

package
v0.0.0-...-fe632b3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDomainToKey

func ConvertDomainToKey(domain string) string

Types

type Config

type Config struct {
	CoreDnsAddress string
	EtcdKeyFile    string
	EtcdCertFile   string
	EtcdCaCertFile string
	EtcdEndpoints  []string
}

Config struct for rpc controller cmd

type Controller

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

Controller is the controller implementation for Foo resources

func NewController

func NewController(
	kubeclientset kubernetes.Interface,
	controllerclientset clientset.Interface,
	rsInformer informers.RpcServiceInformer,
	config *Config,
	stopCh <-chan struct{}) *Controller

NewController for create controller struct

func (*Controller) Run

func (c *Controller) Run(threadiness int) error

Run is controller's main routine

type DNSInterface

type DNSInterface interface {
	Update(domain, ip, suffix string) error
	Delete(domain, ip, suffix string) error
}

DNSInterface for DNS

type EtcdHostData

type EtcdHostData struct {
	Host string `json:"host"`
	TTL  int    `json:"ttl"`
}

EtcdHostData to store in etcd directly

type HostData

type HostData struct {
	Zone    string `json:"zone"`
	Name    string `json:"name"`
	Type    string `json:"type"`
	Address string `json:"address, omitempty"`
	TTL     int    `json:"ttl, omitempty"`
}

HostData to store use REST

type RPCQueryResponse

type RPCQueryResponse struct {
	Success bool                 `json:"success"`
	Data    ServiceInterfaceData `json:"data"`
}

RPCQueryResponse for query RPC interface

type ServiceInterface

type ServiceInterface struct {
	Interface string `json:"interface"`
	Version   string `json:"version"`
	Group     string `json:"group"`
	Serialize string `json:"serialize"`
}

ServiceInterface struct

type ServiceInterfaceData

type ServiceInterfaceData struct {
	Providers []ServiceInterface `json:"providers"`
	Protocol  string             `json:"protocol"`
}

ServiceInterfaceData for interface data

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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