Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Discovery string `yaml:"discovery"` Namespace string `yaml:"namespace"` Service string `yaml:"service"` }
Config contains the cluster configuration.
type Connection ¶
type Connection interface { Endpoints(portname string) []Endpoint Broadcast(req *http.Request, portname string, path string) }
Connection is the cluster connection interface.
func NewConnection ¶
func NewConnection(config *Config) (Connection, error)
NewConnection create a new cluster connection.
func NewKubernetesClient ¶
func NewKubernetesClient(namespace string, service string) (Connection, error)
NewKubernetesClient create a new kubernetes clientset.
Click to show internal directories.
Click to hide internal directories.