k8sclient

package
v0.2.106 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sClientInterface

type K8sClientInterface interface {
	GetWorkload(namespace, kind, name string) (k8sinterface.IWorkload, error)
	CalculateWorkloadParentRecursive(workload k8sinterface.IWorkload) (string, string, error)
	GetKubernetesClient() kubernetes.Interface
	GetDynamicClient() dynamic.Interface
}

type K8sClientMock

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

func (*K8sClientMock) CalculateWorkloadParentRecursive

func (k *K8sClientMock) CalculateWorkloadParentRecursive(workload k8sinterface.IWorkload) (string, string, error)

func (*K8sClientMock) GetDynamicClient

func (k *K8sClientMock) GetDynamicClient() dynamic.Interface

func (*K8sClientMock) GetKubernetesClient

func (k *K8sClientMock) GetKubernetesClient() kubernetes.Interface

func (*K8sClientMock) GetWorkload

func (k *K8sClientMock) GetWorkload(namespace, _, name string) (k8sinterface.IWorkload, error)

Jump to

Keyboard shortcuts

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