Documentation
¶
Index ¶
- func GetNodeIPOrName(ctx context.Context, kubeClient clientset.Interface, name string) string
- func ParseNameNS(input string) (string, string, error)
- func ServerHasGVK(client discovery.ServerResourcesInterface, groupVersion, kind string) (bool, error)
- func ValidateProtocol(protocol string) bool
- type ConfigDumpMode
- type Endpoint
- type ForeignRelations
- type Info
- type IngressAPI
- type K8sObjectInfo
- type PluginSchemaStore
- type PodInfo
- type RawSSLCert
- type Rel
- type Reporter
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
func ParseNameNS ¶
ParseNameNS parses a string searching a namespace and name
func ServerHasGVK ¶
func ServerHasGVK(client discovery.ServerResourcesInterface, groupVersion, kind string) (bool, error)
ServerHasGVK returns true iff the Kubernetes API server supports the given resource kind at the given group-version.
func ValidateProtocol ¶
ValidateProtocol returns a bool of whether string is a valid protocol
Types ¶
type ConfigDumpMode ¶
type ConfigDumpMode int
const ( ConfigDumpModeOff ConfigDumpMode = iota ConfigDumpModeEnabled ConfigDumpMode = iota ConfigDumpModeSensitive ConfigDumpMode = iota )
func ParseConfigDumpMode ¶
func ParseConfigDumpMode(in string) (ConfigDumpMode, error)
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 ForeignRelations ¶
type ForeignRelations struct {
Consumer, Route, Service []string
}
func (*ForeignRelations) GetCombinations ¶
func (relations *ForeignRelations) GetCombinations() []Rel
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 K8sObjectInfo ¶
K8sObjectInfo describes a Kubernetes object.
func FromK8sObject ¶
func FromK8sObject(obj metav1.Object) K8sObjectInfo
type PluginSchemaStore ¶
type PluginSchemaStore struct {
// contains filtered or unexported fields
}
PluginSchemaStore retrives a schema of a Plugin from Kong.
func NewPluginSchemaStore ¶
func NewPluginSchemaStore(client *kong.Client) *PluginSchemaStore
NewPluginSchemaStore creates a PluginSchemaStore.
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.