Documentation
¶
Index ¶
- Constants
- type KubernetesClient
- func (kc *KubernetesClient) Config() *rest.Config
- func (kc *KubernetesClient) GetEndpoints(ctx *context.Context, service *corev1.Service, namespace string) (*corev1.Endpoints, error)
- func (kc *KubernetesClient) GetService(ctx *context.Context, svcName string, namespace string) (*corev1.Service, error)
- func (kc *KubernetesClient) Healthz(ctx *context.Context) error
- func (kc *KubernetesClient) Init() error
Constants ¶
View Source
const ( // KfipBaseLabel use this label as base of other labels like check or group. KfipBaseLabel = "kfip.sighup.io" // AppBaseLabel use this label as base of other labels like name or component. AppBaseLabel = "app.kubernetes.io" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesClient ¶
type KubernetesClient struct { KubeConfig string Client kubernetes.Interface DynClient dynamic.Interface DiscoveryClient discovery.DiscoveryInterface // contains filtered or unexported fields }
KubernetesClient represents the Kubernetes configuration of the project.
func (*KubernetesClient) Config ¶ added in v0.1.6
func (kc *KubernetesClient) Config() *rest.Config
Config returns the rest configuration to the Kubernetes API.
func (*KubernetesClient) GetEndpoints ¶ added in v0.1.6
func (*KubernetesClient) GetService ¶ added in v0.1.6
func (*KubernetesClient) Init ¶
func (kc *KubernetesClient) Init() error
Init initializes the Kubernetes client-go.
Click to show internal directories.
Click to hide internal directories.