kubernetes

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name  string
	Image string
	Tag   string
}

type Deployment

type Deployment struct {
	Name         string
	Replicas     int32
	TrueReplicas int32
	Labels       map[string]string
	Containers   []Container
}

type KubernetesClient

type KubernetesClient struct {
	// contains filtered or unexported fields
}

func NewKubernetesClient

func NewKubernetesClient() (*KubernetesClient, error)

func (*KubernetesClient) GetDeploymentsFromNamespace

func (kc *KubernetesClient) GetDeploymentsFromNamespace(ctx context.Context, namespace string) ([]Deployment, error)

func (*KubernetesClient) GetNamespaces

func (kc *KubernetesClient) GetNamespaces(ctx context.Context) ([]string, error)

Jump to

Keyboard shortcuts

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