k8s

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIExtensionsClient added in v0.2.0

func GetAPIExtensionsClient(restConfig *rest.Config) (apiextensionsclient.Interface, error)

func GetClientSet

func GetClientSet(restConfig *rest.Config) (*kubernetes.Clientset, error)

func GetDynamicClient added in v0.2.0

func GetDynamicClient(restConfig *rest.Config) (*dynamic.DynamicClient, error)

func GetRestConfig added in v0.2.0

func GetRestConfig(kubeconfigFile string, kubeContext string) (*rest.Config, error)

Types

type Info added in v0.0.9

type Info struct {
	Containers      container.InfoList
	CustomResources customresource.InfoList
	DSs             ds.InfoList
	Deployments     deployment.InfoList
	EndpointSlices  endpointslices.InfoList
	Events          event.InfoList
	HPAs            hpa.InfoList
	Images          k8snode.ImageList
	Nodes           k8snode.InfoList
	Pods            k8spod.InfoList
	PVCs            pvc.InfoList
	PVs             pv.InfoList
	Services        k8sservice.InfoList
	STSs            sts.InfoList
	Taints          TaintList
	Tolerations     TolerationList
	PVCVolumes      PVCVolumeList
	// contains filtered or unexported fields
}

func NewInfo added in v0.0.9

func NewInfo(ctx context.Context, clientset *kubernetes.Clientset, dynamicClient *dynamic.DynamicClient, apiExtClient apiextensionsclient.Interface) *Info

func (*Info) Fetch added in v0.0.9

func (i *Info) Fetch(opts fetch.Options) error

type PVCVolume added in v0.1.10

type PVCVolume struct {
	ClaimName string `db:"claim_name"`
	Name      string `db:"name"`
	Namespace string `db:"namespace"`
	Pod       string `db:"pod_name"`
	ReadOnly  bool   `db:"read_only"`
}

type PVCVolumeList added in v0.1.10

type PVCVolumeList []*PVCVolume

type Taint added in v0.0.15

type Taint struct {
	Effect string `db:"effect"`
	Key    string `db:"key"`
	Node   string `db:"node_name"`
	Value  string `db:"value"`
}

type TaintList added in v0.0.15

type TaintList []*Taint

type Toleration added in v0.0.19

type Toleration struct {
	Effect            string `db:"effect"`
	Key               string `db:"key"`
	Pod               string `db:"pod_name"`
	Value             string `db:"value"`
	TolerationSeconds *int64 `db:"toleration_seconds"`
	Operator          string `db:"operator"`
}

type TolerationList added in v0.0.19

type TolerationList []*Toleration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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