v1

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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 ConfigMapBridge

type ConfigMapBridge struct {
	fakecorev1.FakeConfigMaps

	MetaClient client.CoreInterface
	// contains filtered or unexported fields
}

ConfigMapBridge implements ConfigmapInterface

func (*ConfigMapBridge) Get

func (c *ConfigMapBridge) Get(ctx context.Context, name string, options metav1.GetOptions) (result *corev1.ConfigMap, err error)

Get takes name of the configmap, and returns the corresponding configmap object

type CoreV1Bridge

type CoreV1Bridge struct {
	fakecorev1.FakeCoreV1
	MetaClient client.CoreInterface
}

CoreV1Bridge is a coreV1 bridge

func (*CoreV1Bridge) ConfigMaps

func (c *CoreV1Bridge) ConfigMaps(namespace string) corev1.ConfigMapInterface

func (*CoreV1Bridge) Nodes

func (c *CoreV1Bridge) Nodes() corev1.NodeInterface

func (*CoreV1Bridge) PersistentVolumeClaims

func (c *CoreV1Bridge) PersistentVolumeClaims(namespace string) corev1.PersistentVolumeClaimInterface

func (*CoreV1Bridge) PersistentVolumes

func (c *CoreV1Bridge) PersistentVolumes() corev1.PersistentVolumeInterface

func (*CoreV1Bridge) Pods

func (c *CoreV1Bridge) Pods(namespace string) corev1.PodInterface

func (*CoreV1Bridge) Secrets

func (c *CoreV1Bridge) Secrets(namespace string) corev1.SecretInterface

func (*CoreV1Bridge) ServiceAccounts

func (c *CoreV1Bridge) ServiceAccounts(namespace string) corev1.ServiceAccountInterface

type NodesBridge

type NodesBridge struct {
	fakecorev1.FakeNodes
	MetaClient client.CoreInterface
}

NodesBridge implements NodeInterface

func (*NodesBridge) Create

func (c *NodesBridge) Create(ctx context.Context, node *corev1.Node, opts metav1.CreateOptions) (*corev1.Node, error)

Create takes the representation of a node and create it in cluster

func (*NodesBridge) Get

func (c *NodesBridge) Get(ctx context.Context, name string, options metav1.GetOptions) (result *corev1.Node, err error)

Get takes name of the node, and returns the corresponding node object

func (*NodesBridge) Patch

func (c *NodesBridge) Patch(ctx context.Context, name string, pt kubetypes.PatchType, patchBytes []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.Node, err error)

Patch takes the node patch bytes and updates node status

func (*NodesBridge) Update

func (c *NodesBridge) Update(ctx context.Context, node *corev1.Node, opts metav1.UpdateOptions) (result *corev1.Node, err error)

Update takes the representation of a node and updates it

type PersistentVolumeClaimsBridge

type PersistentVolumeClaimsBridge struct {
	fakecorev1.FakePersistentVolumeClaims

	MetaClient client.CoreInterface
	// contains filtered or unexported fields
}

PersistentVolumeClaimsBridge implements PersistentVolumeClaimInterface

func (*PersistentVolumeClaimsBridge) Get

Get takes name of the persistentVolumeClaim, and returns the corresponding persistentVolumeClaim object

type PersistentVolumesBridge

type PersistentVolumesBridge struct {
	fakecorev1.FakePersistentVolumes
	MetaClient client.CoreInterface
}

PersistentVolumesBridge implements PersistentVolumeInterface

func (*PersistentVolumesBridge) Get

func (c *PersistentVolumesBridge) Get(ctx context.Context, name string, options metav1.GetOptions) (result *corev1.PersistentVolume, err error)

Get takes name of the persistentVolume, and returns the corresponding persistentVolume object, and an error if there is any.

type PodsBridge

type PodsBridge struct {
	fakecorev1.FakePods

	MetaClient client.CoreInterface
	// contains filtered or unexported fields
}

func (*PodsBridge) Create added in v1.15.0

func (c *PodsBridge) Create(ctx context.Context, pod *corev1.Pod, opts metav1.CreateOptions) (result *corev1.Pod, err error)

func (*PodsBridge) Delete

func (c *PodsBridge) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

func (*PodsBridge) Get

func (c *PodsBridge) Get(ctx context.Context, name string, options metav1.GetOptions) (result *corev1.Pod, err error)

func (*PodsBridge) Patch

func (c *PodsBridge) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.Pod, err error)

type SecretBridge

type SecretBridge struct {
	fakecorev1.FakeSecrets

	MetaClient client.CoreInterface
	// contains filtered or unexported fields
}

SecretBridge implements SecretInterface

func (*SecretBridge) Get

func (c *SecretBridge) Get(ctx context.Context, name string, options metav1.GetOptions) (result *corev1.Secret, err error)

Get takes name of the secret, and returns the corresponding secret object

type ServiceAccountsBridge

type ServiceAccountsBridge struct {
	fakecorev1.FakeServiceAccounts

	MetaClient client.CoreInterface
	// contains filtered or unexported fields
}

ServiceAccountsBridge implements ServiceAccountInterface

func (*ServiceAccountsBridge) CreateToken

func (c *ServiceAccountsBridge) CreateToken(ctx context.Context, serviceAccountName string, tokenRequest *authenticationv1.TokenRequest, opts metav1.CreateOptions) (result *authenticationv1.TokenRequest, err error)

CreateToken takes the representation of a tokenRequest and creates it. Returns the server's representation of the tokenRequest, and an error, if there is any.

func (*ServiceAccountsBridge) Delete added in v1.12.6

func (c *ServiceAccountsBridge) Delete(ctx context.Context, podUID string, opts metav1.DeleteOptions) error

func (*ServiceAccountsBridge) Get added in v1.14.0

func (c *ServiceAccountsBridge) Get(ctx context.Context, name string, options metav1.GetOptions) (result *corev1.ServiceAccount, err error)

Jump to

Keyboard shortcuts

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