Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterWithAPI ¶
type ClusterWithAPI struct { Context string Namespace string RunningInside bool // RunningInside means that this app is running inside this cluster (and thus different configuration options need to be specified) CoreV1 coreV1.CoreV1Interface AppsV1 appsV1.AppsV1Interface BatchV1 batchV1.BatchV1Interface }
ClusterWithAPI is a struct that contains information about the cluster as well as api clients
type K8s ¶
type K8s struct {
Clusters []ClusterWithAPI
}
K8s struct provides an object that fetches resources from multiple k8s clusters
func NewK8s ¶
func NewK8s(clusters []configuration.KubernetesCluster) K8s
NewK8s connects to the k8s cluster
func (K8s) GetUsedImages ¶
func (k8s K8s) GetUsedImages() map[string]*ClusterWithAPI
GetUsedImages gets all the images used inside a kubernetes cluster by fetching the corresponding resources concurrently
Click to show internal directories.
Click to hide internal directories.