Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector is a struct implementing the DataCollector interface. It wraps a Kubernetes API client object.
func DefaultConfiguration ¶
DefaultConfiguration creates a Collector instance with default configuration to connect to a local Kubernetes API Server. When running outside of the Kubernetes cluster, the path to the kubeconfig file must be provided. If empty, the default in-cluster configuration is used.
func New ¶
func New(api kubernetes.Interface) *Collector
New creates a new instance of the Collector struct. A Kubernetes API client object must be provided. This can either be a client for a real API server, a fake client from k8s.io/client-go/kubernetes/fake, or any object that implements the kubernetes.Interface interface.
type KubernetesObject ¶
type KubernetesObject struct { Kind string `json:"kind"` Object interface{} `json:"object"` }