Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKubernetesClient ¶
func CreateKubernetesClient() (*kubernetes.Clientset, error)
CreateKubernetesClient returns Kubernetes client for in cluster use
func CreateLocalKubernetesClient ¶
func CreateLocalKubernetesClient() (*kubernetes.Clientset, error)
CreateLocalKubernetesClient returns Kubernetes client for local use
Types ¶
type Helm ¶
type Helm interface {
GetHelmChartInfoFromNamespaces(ctx context.Context, namespaces []string) ([]Chart, error)
}
Helm is an interface that wraps calls to Kubernetes cluster for fetching Helm information
func NewHelmClient ¶
NewHelmClient is used to construct access to Kubernetes cluster for Helm It returns an implementation of the Helm client represented as the Helm interface
type Image ¶
Image holds the Docker image information of the container running in the cluster
func ImagePathToImage ¶
ImagePathToImage converts image string to container information In case of an error it returns an empty Image
func (Image) WithoutLibrary ¶
WithoutLibrary returns the Image name without Docker prefix 'library' when using single name Docker repo like ubuntu, etc..
type Kube ¶
type Kube interface { GetImagesFromNamespaces(ctx context.Context, namespaces []string) ([]Image, error) GetAllNamespaces(ctx context.Context) ([]string, error) GetImagePathsFromPods(ctx context.Context, namespace string) ([]string, error) }
Kube is an interface that wraps calls to Kubernetes cluster
func NewKubeClient ¶
NewKubeClient is used to construct access to Kubernetes cluster It returns an implementation of the Kubernetes client represented as the Kube interface