clientset

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 10 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) 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(ctx context.Context, namespace, name string) (*corev1.Pod, error)

type FakeClientset

type FakeClientset struct{}

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(_ context.Context, namespace, name string) (*corev1.Pod, error)

type Interface

type Interface interface {
	GetPod(ctx context.Context, 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) (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