clientset

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clientset

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

func (*Clientset) ConfigurePodLister added in v1.5.0

func (c *Clientset) ConfigurePodLister(nodeName string)

func (*Clientset) CreateServiceAccountToken

func (c *Clientset) CreateServiceAccountToken(ctx context.Context, namespace, name string, tokenRequest *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error)

func (*Clientset) GetGCPServiceAccountName

func (c *Clientset) GetGCPServiceAccountName(ctx context.Context, namespace, name string) (string, error)

func (*Clientset) GetPod

func (c *Clientset) GetPod(namespace, name string) (*corev1.Pod, error)

type FakeClientset

type FakeClientset struct{}

func (*FakeClientset) ConfigurePodLister added in v1.5.0

func (c *FakeClientset) ConfigurePodLister(_ string)

func (*FakeClientset) CreateServiceAccountToken

func (c *FakeClientset) CreateServiceAccountToken(_ context.Context, _, _ string, _ *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error)

func (*FakeClientset) GetGCPServiceAccountName

func (c *FakeClientset) GetGCPServiceAccountName(_ context.Context, _, _ string) (string, error)

func (*FakeClientset) GetPod

func (c *FakeClientset) GetPod(namespace, name string) (*corev1.Pod, error)

type Interface

type Interface interface {
	ConfigurePodLister(nodeName string)
	GetPod(namespace, name string) (*corev1.Pod, error)
	CreateServiceAccountToken(ctx context.Context, namespace, name string, tokenRequest *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error)
	GetGCPServiceAccountName(ctx context.Context, namespace, name string) (string, error)
}

func New

func New(kubeconfigPath string, informerResyncDurationSec int) (Interface, error)

type PodInfo added in v0.1.14

type PodInfo struct {
	Name      string
	Namespace string
}

Jump to

Keyboard shortcuts

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