Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodeIPOrName ¶
GetNodeIPOrName returns the IP address or the name of a node in the cluster
Types ¶
type Endpoint ¶
type Endpoint struct {
// Address IP address of the endpoint
Address string `json:"address"`
// Port number of the TCP port
Port string `json:"port"`
}
Endpoint describes a kubernetes endpoint, same as a target in Kong.
type Info ¶
type Info struct {
KubernetesVersion string
KongVersion string
KICVersion string
Hostname string
KongDB string
ID string
}
Info holds the metadata to be sent as part of a report.
type IngressAPI ¶
type IngressAPI int
const ( OtherAPI IngressAPI = iota NetworkingV1 IngressAPI = iota NetworkingV1beta1 IngressAPI = iota ExtensionsV1beta1 IngressAPI = iota )
func NegotiateResourceAPI ¶
func NegotiateResourceAPI(client discovery.ServerResourcesInterface, kind string, allowedVersions []IngressAPI, ) (IngressAPI, error)
func (IngressAPI) String ¶
func (ia IngressAPI) String() string
type PodInfo ¶
type PodInfo struct {
Name string
Namespace string
NodeIP string
// Labels selectors of the running pod
// This is used to search for other Ingress controller pods
Labels map[string]string
}
PodInfo contains runtime information about the pod running the Ingres controller
type RawSSLCert ¶
RawSSLCert represnts TLS cert and key in bytes
type Reporter ¶
type Reporter struct {
Info Info
Logger logrus.FieldLogger
// contains filtered or unexported fields
}
Reporter sends anonymous reports of runtime properties and errors in Kong.
Click to show internal directories.
Click to hide internal directories.