Documentation ¶
Index ¶
- type ConfigMapBridge
- type CoreV1Bridge
- func (c *CoreV1Bridge) ConfigMaps(namespace string) corev1.ConfigMapInterface
- func (c *CoreV1Bridge) Nodes() corev1.NodeInterface
- func (c *CoreV1Bridge) PersistentVolumeClaims(namespace string) corev1.PersistentVolumeClaimInterface
- func (c *CoreV1Bridge) PersistentVolumes() corev1.PersistentVolumeInterface
- func (c *CoreV1Bridge) Pods(namespace string) corev1.PodInterface
- func (c *CoreV1Bridge) Secrets(namespace string) corev1.SecretInterface
- func (c *CoreV1Bridge) ServiceAccounts(namespace string) corev1.ServiceAccountInterface
- type NodesBridge
- func (c *NodesBridge) Create(ctx context.Context, node *corev1.Node, opts metav1.CreateOptions) (*corev1.Node, error)
- func (c *NodesBridge) Get(ctx context.Context, name string, options metav1.GetOptions) (result *corev1.Node, err error)
- func (c *NodesBridge) Patch(ctx context.Context, name string, pt kubetypes.PatchType, patchBytes []byte, ...) (result *corev1.Node, err error)
- func (c *NodesBridge) Update(ctx context.Context, node *corev1.Node, opts metav1.UpdateOptions) (result *corev1.Node, err error)
- type PersistentVolumeClaimsBridge
- type PersistentVolumesBridge
- type PodsBridge
- func (c *PodsBridge) Create(ctx context.Context, pod *corev1.Pod, opts metav1.CreateOptions) (result *corev1.Pod, err error)
- func (c *PodsBridge) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *PodsBridge) Get(ctx context.Context, name string, options metav1.GetOptions) (result *corev1.Pod, err error)
- func (c *PodsBridge) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *corev1.Pod, err error)
- type SecretBridge
- type ServiceAccountsBridge
- func (c *ServiceAccountsBridge) CreateToken(ctx context.Context, serviceAccountName string, ...) (result *authenticationv1.TokenRequest, err error)
- func (c *ServiceAccountsBridge) Delete(ctx context.Context, podUID string, opts metav1.DeleteOptions) error
- func (c *ServiceAccountsBridge) Get(ctx context.Context, name string, options metav1.GetOptions) (result *corev1.ServiceAccount, err error)
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
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
type PersistentVolumeClaimsBridge ¶
type PersistentVolumeClaimsBridge struct { fakecorev1.FakePersistentVolumeClaims MetaClient client.CoreInterface // contains filtered or unexported fields }
PersistentVolumeClaimsBridge implements PersistentVolumeClaimInterface
func (*PersistentVolumeClaimsBridge) Get ¶
func (c *PersistentVolumeClaimsBridge) Get(ctx context.Context, name string, options metav1.GetOptions) (result *corev1.PersistentVolumeClaim, err error)
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
type SecretBridge ¶
type SecretBridge struct { fakecorev1.FakeSecrets MetaClient client.CoreInterface // contains filtered or unexported fields }
SecretBridge implements SecretInterface
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)