Documentation ¶
Index ¶
- type FakeAppsV1
- func (c *FakeAppsV1) ControllerRevisions(_ string) v1.ControllerRevisionInterface
- func (c *FakeAppsV1) DaemonSets(namespace string) v1.DaemonSetInterface
- func (c *FakeAppsV1) Deployments(namespace string) v1.DeploymentInterface
- func (c *FakeAppsV1) RESTClient() rest.Interface
- func (c *FakeAppsV1) ReplicaSets(_ string) v1.ReplicaSetInterface
- func (c *FakeAppsV1) StatefulSets(namespace string) v1.StatefulSetInterface
- type FakeDaemonSets
- func (c *FakeDaemonSets) Apply(ctx context.Context, ...) (result *appsv1.DaemonSet, err error)
- func (c *FakeDaemonSets) ApplyStatus(_ context.Context, _ *applyconfigurationsappsv1.DaemonSetApplyConfiguration, ...) (result *appsv1.DaemonSet, err error)
- func (c *FakeDaemonSets) Create(ctx context.Context, daemonSet *appsv1.DaemonSet, _ v1.CreateOptions) (result *appsv1.DaemonSet, err error)
- func (c *FakeDaemonSets) Delete(_ context.Context, _ string, _ v1.DeleteOptions) error
- func (c *FakeDaemonSets) DeleteCollection(_ context.Context, _ v1.DeleteOptions, _ v1.ListOptions) error
- func (c *FakeDaemonSets) Get(ctx context.Context, name string, _ v1.GetOptions) (result *appsv1.DaemonSet, err error)
- func (c *FakeDaemonSets) List(_ context.Context, _ v1.ListOptions) (result *appsv1.DaemonSetList, err error)
- func (c *FakeDaemonSets) Patch(_ context.Context, _ string, _ types.PatchType, _ []byte, _ v1.PatchOptions, ...) (result *appsv1.DaemonSet, err error)
- func (c *FakeDaemonSets) Update(_ context.Context, _ *appsv1.DaemonSet, _ v1.UpdateOptions) (result *appsv1.DaemonSet, err error)
- func (c *FakeDaemonSets) UpdateStatus(_ context.Context, _ *appsv1.DaemonSet, _ v1.UpdateOptions) (*appsv1.DaemonSet, error)
- func (c *FakeDaemonSets) Watch(_ context.Context, _ v1.ListOptions) (watch.Interface, error)
- type FakeDeployments
- func (c *FakeDeployments) Apply(ctx context.Context, ...) (result *appsv1.Deployment, err error)
- func (c *FakeDeployments) ApplyScale(_ context.Context, _ string, ...) (result *autoscalingv1.Scale, err error)
- func (c *FakeDeployments) ApplyStatus(_ context.Context, _ *applyconfigurationsappsv1.DeploymentApplyConfiguration, ...) (result *appsv1.Deployment, err error)
- func (c *FakeDeployments) AutoscalingV2(_ context.Context, _ string, ...) (result *autoscalingv1.Scale, err error)
- func (c *FakeDeployments) Create(ctx context.Context, deployment *appsv1.Deployment, _ v1.CreateOptions) (result *appsv1.Deployment, err error)
- func (c *FakeDeployments) Delete(_ context.Context, _ string, _ v1.DeleteOptions) error
- func (c *FakeDeployments) DeleteCollection(_ context.Context, _ v1.DeleteOptions, _ v1.ListOptions) error
- func (c *FakeDeployments) Get(ctx context.Context, name string, _ v1.GetOptions) (result *appsv1.Deployment, err error)
- func (c *FakeDeployments) GetScale(_ context.Context, _ string, _ v1.GetOptions) (result *autoscalingv1.Scale, err error)
- func (c *FakeDeployments) List(_ context.Context, _ v1.ListOptions) (result *appsv1.DeploymentList, err error)
- func (c *FakeDeployments) Patch(_ context.Context, _ string, _ types.PatchType, _ []byte, _ v1.PatchOptions, ...) (result *appsv1.Deployment, err error)
- func (c *FakeDeployments) Update(_ context.Context, _ *appsv1.Deployment, _ v1.UpdateOptions) (result *appsv1.Deployment, err error)
- func (c *FakeDeployments) UpdateScale(_ context.Context, _ string, _ *autoscalingv1.Scale, _ v1.UpdateOptions) (result *autoscalingv1.Scale, err error)
- func (c *FakeDeployments) UpdateStatus(_ context.Context, _ *appsv1.Deployment, _ v1.UpdateOptions) (*appsv1.Deployment, error)
- func (c *FakeDeployments) Watch(_ context.Context, _ v1.ListOptions) (watch.Interface, error)
- type FakeStatefulsets
- func (c *FakeStatefulsets) Apply(ctx context.Context, ...) (result *appsv1.StatefulSet, err error)
- func (c *FakeStatefulsets) ApplyScale(_ context.Context, _ string, ...) (result *autoscalingv1.Scale, err error)
- func (c *FakeStatefulsets) ApplyStatus(_ context.Context, _ *applyconfigurationsappsv1.StatefulSetApplyConfiguration, ...) (result *appsv1.StatefulSet, err error)
- func (c *FakeStatefulsets) AutoscalingV2(_ context.Context, _ string, ...) (result *autoscalingv1.Scale, err error)
- func (c *FakeStatefulsets) Create(ctx context.Context, statefulset *appsv1.StatefulSet, _ v1.CreateOptions) (result *appsv1.StatefulSet, err error)
- func (c *FakeStatefulsets) Delete(_ context.Context, _ string, _ v1.DeleteOptions) error
- func (c *FakeStatefulsets) DeleteCollection(_ context.Context, _ v1.DeleteOptions, _ v1.ListOptions) error
- func (c *FakeStatefulsets) Get(ctx context.Context, name string, _ v1.GetOptions) (result *appsv1.StatefulSet, err error)
- func (c *FakeStatefulsets) GetScale(_ context.Context, _ string, _ v1.GetOptions) (result *autoscalingv1.Scale, err error)
- func (c *FakeStatefulsets) List(_ context.Context, _ v1.ListOptions) (result *appsv1.StatefulSetList, err error)
- func (c *FakeStatefulsets) Patch(_ context.Context, _ string, _ types.PatchType, _ []byte, _ v1.PatchOptions, ...) (result *appsv1.StatefulSet, err error)
- func (c *FakeStatefulsets) Update(_ context.Context, _ *appsv1.StatefulSet, _ v1.UpdateOptions) (result *appsv1.StatefulSet, err error)
- func (c *FakeStatefulsets) UpdateScale(_ context.Context, _ string, _ *autoscalingv1.Scale, _ v1.UpdateOptions) (result *autoscalingv1.Scale, err error)
- func (c *FakeStatefulsets) UpdateStatus(_ context.Context, _ *appsv1.StatefulSet, _ v1.UpdateOptions) (*appsv1.StatefulSet, error)
- func (c *FakeStatefulsets) Watch(_ context.Context, _ v1.ListOptions) (watch.Interface, error)
- type K8sClient
- func (c *K8sClient) AdmissionregistrationV1() admissionregistrationv1.AdmissionregistrationV1Interface
- func (c *K8sClient) AdmissionregistrationV1alpha1() admissionregistrationv1alpha1.AdmissionregistrationV1alpha1Interface
- func (c *K8sClient) AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface
- func (c *K8sClient) AppsV1() appsv1.AppsV1Interface
- func (c *K8sClient) AppsV1beta1() appsv1beta1.AppsV1beta1Interface
- func (c *K8sClient) AppsV1beta2() appsv1beta2.AppsV1beta2Interface
- func (c *K8sClient) AuthenticationV1() authenticationv1.AuthenticationV1Interface
- func (c *K8sClient) AuthenticationV1alpha1() authenticationv1alpha1.AuthenticationV1alpha1Interface
- func (c *K8sClient) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface
- func (c *K8sClient) AuthorizationV1() authorizationv1.AuthorizationV1Interface
- func (c *K8sClient) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface
- func (c *K8sClient) AutoscalingV1() autoscalingv1.AutoscalingV1Interface
- func (c *K8sClient) AutoscalingV2() autoscalingv2.AutoscalingV2Interface
- func (c *K8sClient) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface
- func (c *K8sClient) AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface
- func (c *K8sClient) BatchV1() batchv1.BatchV1Interface
- func (c *K8sClient) BatchV1beta1() batchv1beta1.BatchV1beta1Interface
- func (c *K8sClient) CertificatesV1() certificatesv1.CertificatesV1Interface
- func (c *K8sClient) CertificatesV1alpha1() certificatesv1alpha1.CertificatesV1alpha1Interface
- func (c *K8sClient) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface
- func (c *K8sClient) CoordinationV1() coordinationv1.CoordinationV1Interface
- func (c *K8sClient) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface
- func (c *K8sClient) CoreV1() corev1.CoreV1Interface
- func (c *K8sClient) Discovery() discovery.DiscoveryInterface
- func (c *K8sClient) DiscoveryV1() discoveryv1.DiscoveryV1Interface
- func (c *K8sClient) DiscoveryV1beta1() discoveryv1beta1.DiscoveryV1beta1Interface
- func (c *K8sClient) EventsV1() eventsv1.EventsV1Interface
- func (c *K8sClient) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface
- func (c *K8sClient) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface
- func (c *K8sClient) FlowcontrolV1() flowcontrolv1.FlowcontrolV1Interface
- func (c *K8sClient) FlowcontrolV1beta1() flowcontrolv1beta1.FlowcontrolV1beta1Interface
- func (c *K8sClient) FlowcontrolV1beta2() flowcontrolv1beta2.FlowcontrolV1beta2Interface
- func (c *K8sClient) FlowcontrolV1beta3() flowcontrolv1beta3.FlowcontrolV1beta3Interface
- func (c *K8sClient) InternalV1alpha1() internalv1alpha1.InternalV1alpha1Interface
- func (c *K8sClient) NetworkingV1() networkingv1.NetworkingV1Interface
- func (c *K8sClient) NetworkingV1alpha1() networkingv1alpha1.NetworkingV1alpha1Interface
- func (c *K8sClient) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface
- func (c *K8sClient) NodeV1() nodev1.NodeV1Interface
- func (c *K8sClient) NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface
- func (c *K8sClient) NodeV1beta1() nodev1beta1.NodeV1beta1Interface
- func (c *K8sClient) PolicyV1() policyv1.PolicyV1Interface
- func (c *K8sClient) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface
- func (c *K8sClient) RbacV1() rbacv1.RbacV1Interface
- func (c *K8sClient) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface
- func (c *K8sClient) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface
- func (c *K8sClient) ResourceV1alpha2() resourceV1alpha2.ResourceV1alpha2Interface
- func (c *K8sClient) SchedulingV1() schedulingv1.SchedulingV1Interface
- func (c *K8sClient) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface
- func (c *K8sClient) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface
- func (c *K8sClient) StorageV1() storagev1.StorageV1Interface
- func (c *K8sClient) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface
- func (c *K8sClient) StorageV1beta1() storagev1beta1.StorageV1beta1Interface
- func (c *K8sClient) StoragemigrationV1alpha1() storagemigrationv1alpha1.StoragemigrationV1alpha1Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAppsV1 ¶
FakeAppsV1 implements AppsV1Interface
func (*FakeAppsV1) ControllerRevisions ¶
func (c *FakeAppsV1) ControllerRevisions(_ string) v1.ControllerRevisionInterface
ControllerRevisions takes a namespace and returns an ControllerRevisionInterface
func (*FakeAppsV1) DaemonSets ¶
func (c *FakeAppsV1) DaemonSets(namespace string) v1.DaemonSetInterface
DaemonSets takes a namespace and returns a DaemonSetInterface
func (*FakeAppsV1) Deployments ¶
func (c *FakeAppsV1) Deployments(namespace string) v1.DeploymentInterface
Deployments takes a namespace and returns a DeploymentInterface
func (*FakeAppsV1) RESTClient ¶
func (c *FakeAppsV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeAppsV1) ReplicaSets ¶
func (c *FakeAppsV1) ReplicaSets(_ string) v1.ReplicaSetInterface
ReplicaSets takes a namespace and returns an ReplicaSetInterface
func (*FakeAppsV1) StatefulSets ¶
func (c *FakeAppsV1) StatefulSets(namespace string) v1.StatefulSetInterface
StatefulSets takes a namespace and returns a StatefulSetInterface
type FakeDaemonSets ¶
FakeDaemonSets implements DaemonSetInterface
func (*FakeDaemonSets) Apply ¶
func (c *FakeDaemonSets) Apply(ctx context.Context, daemonSet *applyconfigurationsappsv1.DaemonSetApplyConfiguration, _ v1.ApplyOptions) (result *appsv1.DaemonSet, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied daemonSet.
func (*FakeDaemonSets) ApplyStatus ¶
func (c *FakeDaemonSets) ApplyStatus(_ context.Context, _ *applyconfigurationsappsv1.DaemonSetApplyConfiguration, _ v1.ApplyOptions) (result *appsv1.DaemonSet, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakeDaemonSets) Create ¶
func (c *FakeDaemonSets) Create(ctx context.Context, daemonSet *appsv1.DaemonSet, _ v1.CreateOptions) (result *appsv1.DaemonSet, err error)
Create takes the representation of a daemonSet and creates it. Returns the server's representation of the daemonSet, and an error, if there is any.
func (*FakeDaemonSets) Delete ¶
func (c *FakeDaemonSets) Delete(_ context.Context, _ string, _ v1.DeleteOptions) error
Delete takes name of the daemonSet and deletes it. Returns an error if one occurs.
func (*FakeDaemonSets) DeleteCollection ¶
func (c *FakeDaemonSets) DeleteCollection(_ context.Context, _ v1.DeleteOptions, _ v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDaemonSets) Get ¶
func (c *FakeDaemonSets) Get(ctx context.Context, name string, _ v1.GetOptions) (result *appsv1.DaemonSet, err error)
Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any.
func (*FakeDaemonSets) List ¶
func (c *FakeDaemonSets) List(_ context.Context, _ v1.ListOptions) (result *appsv1.DaemonSetList, err error)
List takes label and field selectors, and returns the list of DaemonSets that match those selectors.
func (*FakeDaemonSets) Patch ¶
func (c *FakeDaemonSets) Patch(_ context.Context, _ string, _ types.PatchType, _ []byte, _ v1.PatchOptions, _ ...string) (result *appsv1.DaemonSet, err error)
Patch applies the patch and returns the patched daemonSet.
func (*FakeDaemonSets) Update ¶
func (c *FakeDaemonSets) Update(_ context.Context, _ *appsv1.DaemonSet, _ v1.UpdateOptions) (result *appsv1.DaemonSet, err error)
Update takes the representation of a daemonSet and updates it. Returns the server's representation of the daemonSet, and an error, if there is any.
func (*FakeDaemonSets) UpdateStatus ¶
func (c *FakeDaemonSets) UpdateStatus(_ context.Context, _ *appsv1.DaemonSet, _ v1.UpdateOptions) (*appsv1.DaemonSet, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeDaemonSets) Watch ¶
func (c *FakeDaemonSets) Watch(_ context.Context, _ v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested daemonSets.
type FakeDeployments ¶
FakeDeployments implements DeploymentInterface
func (*FakeDeployments) Apply ¶
func (c *FakeDeployments) Apply(ctx context.Context, deployment *applyconfigurationsappsv1.DeploymentApplyConfiguration, _ v1.ApplyOptions) (result *appsv1.Deployment, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied deployment.
func (*FakeDeployments) ApplyScale ¶
func (c *FakeDeployments) ApplyScale(_ context.Context, _ string, _ *applyconfigurationsautoscalingv1.ScaleApplyConfiguration, _ v1.ApplyOptions) (result *autoscalingv1.Scale, err error)
ApplyScale takes top resource name and the apply declarative configuration for scale, applies it and returns the applied scale, and an error, if there is any.
func (*FakeDeployments) ApplyStatus ¶
func (c *FakeDeployments) ApplyStatus(_ context.Context, _ *applyconfigurationsappsv1.DeploymentApplyConfiguration, _ v1.ApplyOptions) (result *appsv1.Deployment, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakeDeployments) AutoscalingV2 ¶
func (c *FakeDeployments) AutoscalingV2(_ context.Context, _ string, _ *applyconfigurationsautoscalingv1.ScaleApplyConfiguration, _ v1.ApplyOptions) (result *autoscalingv1.Scale, err error)
AutoscalingV2 takes top resource name and the apply declarative configuration for scale, applies it and returns the applied scale, and an error, if there is any.
func (*FakeDeployments) Create ¶
func (c *FakeDeployments) Create(ctx context.Context, deployment *appsv1.Deployment, _ v1.CreateOptions) (result *appsv1.Deployment, err error)
Create takes the representation of a deployment and creates it. Returns the server's representation of the deployment, and an error, if there is any.
func (*FakeDeployments) Delete ¶
func (c *FakeDeployments) Delete(_ context.Context, _ string, _ v1.DeleteOptions) error
Delete takes name of the deployment and deletes it. Returns an error if one occurs.
func (*FakeDeployments) DeleteCollection ¶
func (c *FakeDeployments) DeleteCollection(_ context.Context, _ v1.DeleteOptions, _ v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDeployments) Get ¶
func (c *FakeDeployments) Get(ctx context.Context, name string, _ v1.GetOptions) (result *appsv1.Deployment, err error)
Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any.
func (*FakeDeployments) GetScale ¶
func (c *FakeDeployments) GetScale(_ context.Context, _ string, _ v1.GetOptions) (result *autoscalingv1.Scale, err error)
GetScale takes name of the deployment, and returns the corresponding scale object, and an error if there is any.
func (*FakeDeployments) List ¶
func (c *FakeDeployments) List(_ context.Context, _ v1.ListOptions) (result *appsv1.DeploymentList, err error)
List takes label and field selectors, and returns the list of Deployments that match those selectors.
func (*FakeDeployments) Patch ¶
func (c *FakeDeployments) Patch(_ context.Context, _ string, _ types.PatchType, _ []byte, _ v1.PatchOptions, _ ...string) (result *appsv1.Deployment, err error)
Patch applies the patch and returns the patched deployment.
func (*FakeDeployments) Update ¶
func (c *FakeDeployments) Update(_ context.Context, _ *appsv1.Deployment, _ v1.UpdateOptions) (result *appsv1.Deployment, err error)
Update takes the representation of a deployment and updates it. Returns the server's representation of the deployment, and an error, if there is any.
func (*FakeDeployments) UpdateScale ¶
func (c *FakeDeployments) UpdateScale(_ context.Context, _ string, _ *autoscalingv1.Scale, _ v1.UpdateOptions) (result *autoscalingv1.Scale, err error)
UpdateScale takes the representation of a scale and updates it. Returns the server's representation of the scale, and an error, if there is any.
func (*FakeDeployments) UpdateStatus ¶
func (c *FakeDeployments) UpdateStatus(_ context.Context, _ *appsv1.Deployment, _ v1.UpdateOptions) (*appsv1.Deployment, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeDeployments) Watch ¶
func (c *FakeDeployments) Watch(_ context.Context, _ v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested deployments.
type FakeStatefulsets ¶ added in v1.6.0
FakeStatefulsets implements StatefulSetInterface
func (*FakeStatefulsets) Apply ¶ added in v1.6.0
func (c *FakeStatefulsets) Apply(ctx context.Context, statefulset *applyconfigurationsappsv1.StatefulSetApplyConfiguration, _ v1.ApplyOptions) (result *appsv1.StatefulSet, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied statefulset.
func (*FakeStatefulsets) ApplyScale ¶ added in v1.6.0
func (c *FakeStatefulsets) ApplyScale(_ context.Context, _ string, _ *applyconfigurationsautoscalingv1.ScaleApplyConfiguration, _ v1.ApplyOptions) (result *autoscalingv1.Scale, err error)
ApplyScale takes top resource name and the apply declarative configuration for scale, applies it and returns the applied scale, and an error, if there is any.
func (*FakeStatefulsets) ApplyStatus ¶ added in v1.6.0
func (c *FakeStatefulsets) ApplyStatus(_ context.Context, _ *applyconfigurationsappsv1.StatefulSetApplyConfiguration, _ v1.ApplyOptions) (result *appsv1.StatefulSet, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakeStatefulsets) AutoscalingV2 ¶ added in v1.6.0
func (c *FakeStatefulsets) AutoscalingV2(_ context.Context, _ string, _ *applyconfigurationsautoscalingv1.ScaleApplyConfiguration, _ v1.ApplyOptions) (result *autoscalingv1.Scale, err error)
AutoscalingV2 takes top resource name and the apply declarative configuration for scale, applies it and returns the applied scale, and an error, if there is any.
func (*FakeStatefulsets) Create ¶ added in v1.6.0
func (c *FakeStatefulsets) Create(ctx context.Context, statefulset *appsv1.StatefulSet, _ v1.CreateOptions) (result *appsv1.StatefulSet, err error)
Create takes the representation of a statefulset and creates it. Returns the server's representation of the statefulset, and an error, if there is any.
func (*FakeStatefulsets) Delete ¶ added in v1.6.0
func (c *FakeStatefulsets) Delete(_ context.Context, _ string, _ v1.DeleteOptions) error
Delete takes name of the statefulset and deletes it. Returns an error if one occurs.
func (*FakeStatefulsets) DeleteCollection ¶ added in v1.6.0
func (c *FakeStatefulsets) DeleteCollection(_ context.Context, _ v1.DeleteOptions, _ v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeStatefulsets) Get ¶ added in v1.6.0
func (c *FakeStatefulsets) Get(ctx context.Context, name string, _ v1.GetOptions) (result *appsv1.StatefulSet, err error)
Get takes name of the statefulset, and returns the corresponding statefulset object, and an error if there is any.
func (*FakeStatefulsets) GetScale ¶ added in v1.6.0
func (c *FakeStatefulsets) GetScale(_ context.Context, _ string, _ v1.GetOptions) (result *autoscalingv1.Scale, err error)
GetScale takes name of the statefulset, and returns the corresponding scale object, and an error if there is any.
func (*FakeStatefulsets) List ¶ added in v1.6.0
func (c *FakeStatefulsets) List(_ context.Context, _ v1.ListOptions) (result *appsv1.StatefulSetList, err error)
List takes label and field selectors, and returns the list of StatefulSets that match those selectors.
func (*FakeStatefulsets) Patch ¶ added in v1.6.0
func (c *FakeStatefulsets) Patch(_ context.Context, _ string, _ types.PatchType, _ []byte, _ v1.PatchOptions, _ ...string) (result *appsv1.StatefulSet, err error)
Patch applies the patch and returns the patched statefulset.
func (*FakeStatefulsets) Update ¶ added in v1.6.0
func (c *FakeStatefulsets) Update(_ context.Context, _ *appsv1.StatefulSet, _ v1.UpdateOptions) (result *appsv1.StatefulSet, err error)
Update takes the representation of a statefulset and updates it. Returns the server's representation of the statefulset, and an error, if there is any.
func (*FakeStatefulsets) UpdateScale ¶ added in v1.6.0
func (c *FakeStatefulsets) UpdateScale(_ context.Context, _ string, _ *autoscalingv1.Scale, _ v1.UpdateOptions) (result *autoscalingv1.Scale, err error)
UpdateScale takes the representation of a scale and updates it. Returns the server's representation of the scale, and an error, if there is any.
func (*FakeStatefulsets) UpdateStatus ¶ added in v1.6.0
func (c *FakeStatefulsets) UpdateStatus(_ context.Context, _ *appsv1.StatefulSet, _ v1.UpdateOptions) (*appsv1.StatefulSet, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeStatefulsets) Watch ¶ added in v1.6.0
func (c *FakeStatefulsets) Watch(_ context.Context, _ v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested statefulsets.
type K8sClient ¶
K8sClient implements client-go kubernetes interface Internally it's calling the FakeClient to apply/get/create/delete etc. as they need to shared the same map in memory
func NewFakeClient ¶
NewFakeClient returns a new K8sClient
func (*K8sClient) AdmissionregistrationV1 ¶
func (c *K8sClient) AdmissionregistrationV1() admissionregistrationv1.AdmissionregistrationV1Interface
AdmissionregistrationV1 retrieves the AdmissionregistrationV1Client
func (*K8sClient) AdmissionregistrationV1alpha1 ¶ added in v1.3.0
func (c *K8sClient) AdmissionregistrationV1alpha1() admissionregistrationv1alpha1.AdmissionregistrationV1alpha1Interface
AdmissionregistrationV1alpha1 retrieves the AdmissionregistrationV1alpha1Client
func (*K8sClient) AdmissionregistrationV1beta1 ¶
func (c *K8sClient) AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface
AdmissionregistrationV1beta1 retrieves the AdmissionregistrationV1beta1Client
func (*K8sClient) AppsV1 ¶
func (c *K8sClient) AppsV1() appsv1.AppsV1Interface
AppsV1 returns an fake AppsV1Interface implementation from the given client
func (*K8sClient) AppsV1beta1 ¶
func (c *K8sClient) AppsV1beta1() appsv1beta1.AppsV1beta1Interface
AppsV1beta1 retrieves the AppsV1beta1Client
func (*K8sClient) AppsV1beta2 ¶
func (c *K8sClient) AppsV1beta2() appsv1beta2.AppsV1beta2Interface
AppsV1beta2 retrieves the AppsV1beta2Client
func (*K8sClient) AuthenticationV1 ¶
func (c *K8sClient) AuthenticationV1() authenticationv1.AuthenticationV1Interface
AuthenticationV1 retrieves the AuthenticationV1Client
func (*K8sClient) AuthenticationV1alpha1 ¶ added in v1.3.0
func (c *K8sClient) AuthenticationV1alpha1() authenticationv1alpha1.AuthenticationV1alpha1Interface
AuthenticationV1alpha1 retrieves the AuthenticationV1alpha1Client
func (*K8sClient) AuthenticationV1beta1 ¶
func (c *K8sClient) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface
AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client
func (*K8sClient) AuthorizationV1 ¶
func (c *K8sClient) AuthorizationV1() authorizationv1.AuthorizationV1Interface
AuthorizationV1 retrieves the AuthorizationV1Client
func (*K8sClient) AuthorizationV1beta1 ¶
func (c *K8sClient) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface
AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client
func (*K8sClient) AutoscalingV1 ¶
func (c *K8sClient) AutoscalingV1() autoscalingv1.AutoscalingV1Interface
AutoscalingV1 retrieves the AutoscalingV1Client
func (*K8sClient) AutoscalingV2 ¶
func (c *K8sClient) AutoscalingV2() autoscalingv2.AutoscalingV2Interface
AutoscalingV2 retrieves the AutoscalingV2Client
func (*K8sClient) AutoscalingV2beta1 ¶
func (c *K8sClient) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface
AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client
func (*K8sClient) AutoscalingV2beta2 ¶
func (c *K8sClient) AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface
AutoscalingV2beta2 retrieves the AutoscalingV2beta2Client
func (*K8sClient) BatchV1 ¶
func (c *K8sClient) BatchV1() batchv1.BatchV1Interface
BatchV1 retrieves the BatchV1Client
func (*K8sClient) BatchV1beta1 ¶
func (c *K8sClient) BatchV1beta1() batchv1beta1.BatchV1beta1Interface
BatchV1beta1 retrieves the BatchV1beta1Client
func (*K8sClient) CertificatesV1 ¶
func (c *K8sClient) CertificatesV1() certificatesv1.CertificatesV1Interface
CertificatesV1 retrieves the CertificatesV1Client
func (*K8sClient) CertificatesV1alpha1 ¶ added in v1.3.0
func (c *K8sClient) CertificatesV1alpha1() certificatesv1alpha1.CertificatesV1alpha1Interface
CertificatesV1alpha1 retrieves the CertificatesV1alpha1Client
func (*K8sClient) CertificatesV1beta1 ¶
func (c *K8sClient) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface
CertificatesV1beta1 retrieves the CertificatesV1beta1Client
func (*K8sClient) CoordinationV1 ¶
func (c *K8sClient) CoordinationV1() coordinationv1.CoordinationV1Interface
CoordinationV1 retrieves the CoordinationV1Client
func (*K8sClient) CoordinationV1beta1 ¶
func (c *K8sClient) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface
CoordinationV1beta1 retrieves the CoordinationV1beta1Client
func (*K8sClient) CoreV1 ¶
func (c *K8sClient) CoreV1() corev1.CoreV1Interface
CoreV1 retrieves the CoreV1Client
func (*K8sClient) Discovery ¶
func (c *K8sClient) Discovery() discovery.DiscoveryInterface
Discovery retrieves DiscoveryInterface
func (*K8sClient) DiscoveryV1 ¶
func (c *K8sClient) DiscoveryV1() discoveryv1.DiscoveryV1Interface
DiscoveryV1 retrieves the DiscoveryV1Client
func (*K8sClient) DiscoveryV1beta1 ¶
func (c *K8sClient) DiscoveryV1beta1() discoveryv1beta1.DiscoveryV1beta1Interface
DiscoveryV1beta1 retrieves the DiscoveryV1beta1Client
func (*K8sClient) EventsV1 ¶
func (c *K8sClient) EventsV1() eventsv1.EventsV1Interface
EventsV1 retrieves the EventsV1Client
func (*K8sClient) EventsV1beta1 ¶
func (c *K8sClient) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface
EventsV1beta1 retrieves the EventsV1beta1Client
func (*K8sClient) ExtensionsV1beta1 ¶
func (c *K8sClient) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface
ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client
func (*K8sClient) FlowcontrolV1 ¶ added in v1.7.0
func (c *K8sClient) FlowcontrolV1() flowcontrolv1.FlowcontrolV1Interface
FlowcontrolV1 retrieves the FlowcontrolV1Client
func (*K8sClient) FlowcontrolV1beta1 ¶
func (c *K8sClient) FlowcontrolV1beta1() flowcontrolv1beta1.FlowcontrolV1beta1Interface
FlowcontrolV1beta1 retrieves the FlowcontrolV1beta1Client
func (*K8sClient) FlowcontrolV1beta2 ¶
func (c *K8sClient) FlowcontrolV1beta2() flowcontrolv1beta2.FlowcontrolV1beta2Interface
FlowcontrolV1beta2 retrieves the FlowcontrolV1beta2Client
func (*K8sClient) FlowcontrolV1beta3 ¶ added in v1.3.0
func (c *K8sClient) FlowcontrolV1beta3() flowcontrolv1beta3.FlowcontrolV1beta3Interface
FlowcontrolV1beta3 retrieves the FlowcontrolV1beta3Client
func (*K8sClient) InternalV1alpha1 ¶
func (c *K8sClient) InternalV1alpha1() internalv1alpha1.InternalV1alpha1Interface
InternalV1alpha1 retrieves the InternalV1alpha1Client
func (*K8sClient) NetworkingV1 ¶
func (c *K8sClient) NetworkingV1() networkingv1.NetworkingV1Interface
NetworkingV1 retrieves the NetworkingV1Client
func (*K8sClient) NetworkingV1alpha1 ¶ added in v1.3.0
func (c *K8sClient) NetworkingV1alpha1() networkingv1alpha1.NetworkingV1alpha1Interface
NetworkingV1alpha1 retrieves the NetworkingV1alpha1Client
func (*K8sClient) NetworkingV1beta1 ¶
func (c *K8sClient) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface
NetworkingV1beta1 retrieves the NetworkingV1beta1Client
func (*K8sClient) NodeV1 ¶
func (c *K8sClient) NodeV1() nodev1.NodeV1Interface
NodeV1 retrieves the NodeV1Client
func (*K8sClient) NodeV1alpha1 ¶
func (c *K8sClient) NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface
NodeV1alpha1 retrieves the NodeV1alpha1Client
func (*K8sClient) NodeV1beta1 ¶
func (c *K8sClient) NodeV1beta1() nodev1beta1.NodeV1beta1Interface
NodeV1beta1 retrieves the NodeV1beta1Client
func (*K8sClient) PolicyV1 ¶
func (c *K8sClient) PolicyV1() policyv1.PolicyV1Interface
PolicyV1 retrieves the PolicyV1Client
func (*K8sClient) PolicyV1beta1 ¶
func (c *K8sClient) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface
PolicyV1beta1 retrieves the PolicyV1beta1Client
func (*K8sClient) RbacV1 ¶
func (c *K8sClient) RbacV1() rbacv1.RbacV1Interface
RbacV1 retrieves the RbacV1Client
func (*K8sClient) RbacV1alpha1 ¶
func (c *K8sClient) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface
RbacV1alpha1 retrieves the RbacV1alpha1Client
func (*K8sClient) RbacV1beta1 ¶
func (c *K8sClient) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface
RbacV1beta1 retrieves the RbacV1beta1Client
func (*K8sClient) ResourceV1alpha2 ¶ added in v1.3.0
func (c *K8sClient) ResourceV1alpha2() resourceV1alpha2.ResourceV1alpha2Interface
ResourceV1alpha2 retrieves the ResourceV1alpha2Client
func (*K8sClient) SchedulingV1 ¶
func (c *K8sClient) SchedulingV1() schedulingv1.SchedulingV1Interface
SchedulingV1 retrieves the SchedulingV1Client
func (*K8sClient) SchedulingV1alpha1 ¶
func (c *K8sClient) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface
SchedulingV1alpha1 retrieves the SchedulingV1alpha1Client
func (*K8sClient) SchedulingV1beta1 ¶
func (c *K8sClient) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface
SchedulingV1beta1 retrieves the SchedulingV1beta1Client
func (*K8sClient) StorageV1 ¶
func (c *K8sClient) StorageV1() storagev1.StorageV1Interface
StorageV1 retrieves the StorageV1Client
func (*K8sClient) StorageV1alpha1 ¶
func (c *K8sClient) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface
StorageV1alpha1 retrieves the StorageV1alpha1Client
func (*K8sClient) StorageV1beta1 ¶
func (c *K8sClient) StorageV1beta1() storagev1beta1.StorageV1beta1Interface
StorageV1beta1 retrieves the StorageV1beta1Client
func (*K8sClient) StoragemigrationV1alpha1 ¶ added in v1.7.0
func (c *K8sClient) StoragemigrationV1alpha1() storagemigrationv1alpha1.StoragemigrationV1alpha1Interface
StoragemigrationV1alpha1 retrieves StoragemigrationV1alpha1Interface