Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDomainToKey ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.