Documentation ¶
Index ¶
- func PathToKubeConfig() (string, error)
- type Client
- func (kc *Client) GetImagesFromDeployments(ctx context.Context, namespace string) ([]string, error)
- func (kc *Client) GetImagesFromNamespace(ctx context.Context, namespace string) ([]string, error)
- func (kc *Client) GetImagesFromPods(ctx context.Context, namespace string) ([]string, error)
- func (kc *Client) GetNamespace(ctx context.Context, namespace string) (*corev1.Namespace, error)
- func (kc *Client) ListCronJobs(ctx context.Context, namespace string) (*batchv1beta1.CronJobList, error)
- func (kc *Client) ListDeployments(ctx context.Context, namespace string) (*appsv1.DeploymentList, error)
- func (kc *Client) ListNamespaces(ctx context.Context) (*corev1.NamespaceList, error)
- func (kc *Client) ListPods(ctx context.Context, namespace string) (*corev1.PodList, error)
- func (kc *Client) ListStatefulSets(ctx context.Context, namespace string) (*appsv1.StatefulSetList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathToKubeConfig ¶
Types ¶
type Client ¶
type Client struct {
Clientset *kubernetes.Clientset
}
func NewDefaultClient ¶
func (*Client) GetImagesFromDeployments ¶
func (*Client) GetImagesFromNamespace ¶
Get images from deployments and Pods returning a list of unique images
func (*Client) GetImagesFromPods ¶
func (*Client) GetNamespace ¶
func (*Client) ListCronJobs ¶
func (kc *Client) ListCronJobs(ctx context.Context, namespace string) (*batchv1beta1.CronJobList, error)
func (*Client) ListDeployments ¶
func (*Client) ListNamespaces ¶
func (*Client) ListStatefulSets ¶
Click to show internal directories.
Click to hide internal directories.