k8s

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 17 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL