operatorclient

package
v0.0.0-1e295784b-1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package operatorclient is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServiceClient

type APIServiceClient interface {
	CreateAPIService(*apiregistrationv1.APIService) (*apiregistrationv1.APIService, error)
	GetAPIService(name string) (*apiregistrationv1.APIService, error)
	UpdateAPIService(modified *apiregistrationv1.APIService) (*apiregistrationv1.APIService, error)
	DeleteAPIService(name string, options *metav1.DeleteOptions) error
}

APIServiceClient contains methods for manipulating APIServiceBindings.

type Client

type Client struct {
	kubernetes.Interface
	// contains filtered or unexported fields
}

Client is a kubernetes client that can talk to the API server.

func (*Client) ApiextensionsV1beta1Interface

func (c *Client) ApiextensionsV1beta1Interface() apiextensions.Interface

ApiextensionsV1beta1Interface returns the API extension interface.

func (*Client) ApiregistrationV1Interface

func (c *Client) ApiregistrationV1Interface() apiregistration.Interface

ApiregistrationV1Interface returns the API registration (aggregated apiserver) interface

func (*Client) AtomicModifyCustomResource

func (c *Client) AtomicModifyCustomResource(apiGroup, version, namespace, resourceKind, resourceName string, f CustomResourceModifier, data interface{}) error

AtomicModifyCustomResource gets the custom resource, modifies it and writes it back. If it's modified by other writers, we will retry until it succeeds.

func (*Client) CreateAPIService

CreateAPIService creates the APIService.

func (*Client) CreateClusterRole

func (c *Client) CreateClusterRole(r *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)

CreateClusterRole creates the ClusterRole.

func (*Client) CreateClusterRoleBinding

func (c *Client) CreateClusterRoleBinding(ig *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)

CreateRoleBinding creates the roleBinding.

func (*Client) CreateCustomResource

func (c *Client) CreateCustomResource(item *unstructured.Unstructured) error

CreateCustomResource creates the custom resource.

func (*Client) CreateCustomResourceRaw

func (c *Client) CreateCustomResourceRaw(apiGroup, version, namespace, kind string, data []byte) error

CreateCustomResourceRaw creates the raw bytes of the custom resource.

func (*Client) CreateCustomResourceRawIfNotFound

func (c *Client) CreateCustomResourceRawIfNotFound(apiGroup, version, namespace, kind, name string, data []byte) (bool, error)

CreateCustomResourceRawIfNotFound creates the raw bytes of the custom resource if it doesn't exist. It also returns a boolean to indicate whether a new custom resource is created.

func (*Client) CreateDeployment

func (c *Client) CreateDeployment(dep *appsv1.Deployment) (*appsv1.Deployment, error)

CreateDeployment creates the Deployment object.

func (*Client) CreateOrRollingUpdateDeployment

func (c *Client) CreateOrRollingUpdateDeployment(dep *appsv1.Deployment) (*appsv1.Deployment, bool, error)

CreateOrRollingUpdateDeployment creates the Deployment if it doesn't exist. If the Deployment already exists, it will update the Deployment and wait for it to rollout. Returns true if the Deployment was created or updated, false if there was no update.

func (*Client) CreateOrUpdateCustomeResourceRaw

func (c *Client) CreateOrUpdateCustomeResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string, data []byte) error

CreateOrUpdateCustomeResourceRaw creates the custom resource if it doesn't exist. If the custom resource exists, it updates the existing one.

func (*Client) CreateRole

func (c *Client) CreateRole(r *rbacv1.Role) (*rbacv1.Role, error)

CreateRole creates the role.

func (*Client) CreateRoleBinding

func (c *Client) CreateRoleBinding(ig *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)

CreateRoleBinding creates the roleBinding.

func (*Client) CreateSecret

func (c *Client) CreateSecret(ig *v1.Secret) (*v1.Secret, error)

CreateSecret creates the Secret.

func (*Client) CreateService

func (c *Client) CreateService(ig *v1.Service) (*v1.Service, error)

CreateService creates the Service.

func (*Client) CreateServiceAccount

func (c *Client) CreateServiceAccount(ig *v1.ServiceAccount) (*v1.ServiceAccount, error)

CreateServiceAccount creates the serviceAccount.

func (*Client) DeleteAPIService

func (c *Client) DeleteAPIService(name string, options *metav1.DeleteOptions) error

DeleteAPIService deletes the APIService.

func (*Client) DeleteClusterRole

func (c *Client) DeleteClusterRole(name string, options *metav1.DeleteOptions) error

DeleteClusterRole deletes the ClusterRole

func (*Client) DeleteClusterRoleBinding

func (c *Client) DeleteClusterRoleBinding(name string, options *metav1.DeleteOptions) error

DeleteRoleBinding deletes the roleBinding.

func (*Client) DeleteCustomResource

func (c *Client) DeleteCustomResource(apiGroup, version, namespace, resourceKind, resourceName string) error

DeleteCustomResource deletes the with the given name.

func (*Client) DeleteDeployment

func (c *Client) DeleteDeployment(namespace, name string, options *metav1.DeleteOptions) error

DeleteDeployment deletes the Deployment object.

func (*Client) DeleteRole

func (c *Client) DeleteRole(namespace, name string, options *metav1.DeleteOptions) error

DeleteRole deletes the role.

func (*Client) DeleteRoleBinding

func (c *Client) DeleteRoleBinding(namespace, name string, options *metav1.DeleteOptions) error

DeleteRoleBinding deletes the roleBinding.

func (*Client) DeleteSecret

func (c *Client) DeleteSecret(namespace, name string, options *metav1.DeleteOptions) error

DeleteSecret deletes the Secret.

func (*Client) DeleteService

func (c *Client) DeleteService(namespace, name string, options *metav1.DeleteOptions) error

DeleteService deletes the Service.

func (*Client) DeleteServiceAccount

func (c *Client) DeleteServiceAccount(namespace, name string, options *metav1.DeleteOptions) error

DeleteServiceAccount deletes the serviceAccount.

func (*Client) GetAPIService

func (c *Client) GetAPIService(name string) (*apiregistrationv1.APIService, error)

GetAPIService returns the existing APIService.

func (*Client) GetClusterRole

func (c *Client) GetClusterRole(name string) (*rbacv1.ClusterRole, error)

GetClusterRole returns the existing ClusterRole.

func (*Client) GetClusterRoleBinding

func (c *Client) GetClusterRoleBinding(name string) (*rbacv1.ClusterRoleBinding, error)

GetRoleBinding returns the existing roleBinding.

func (*Client) GetCustomResource

func (c *Client) GetCustomResource(apiGroup, version, namespace, resourceKind, resourceName string) (*unstructured.Unstructured, error)

GetCustomResource returns the custom resource as *unstructured.Unstructured by the given name.

func (*Client) GetCustomResourceRaw

func (c *Client) GetCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string) ([]byte, error)

GetCustomResourceRaw returns the custom resource's raw body data by the given name.

func (*Client) GetDeployment

func (c *Client) GetDeployment(namespace, name string) (*appsv1.Deployment, error)

GetDeployment returns the Deployment object for the given namespace and name.

func (*Client) GetRole

func (c *Client) GetRole(namespace, name string) (*rbacv1.Role, error)

GetRole returns the existing role.

func (*Client) GetRoleBinding

func (c *Client) GetRoleBinding(namespace, name string) (*rbacv1.RoleBinding, error)

GetRoleBinding returns the existing roleBinding.

func (*Client) GetSecret

func (c *Client) GetSecret(namespace, name string) (*v1.Secret, error)

GetSecret returns the existing Secret.

func (*Client) GetService

func (c *Client) GetService(namespace, name string) (*v1.Service, error)

GetService returns the existing Service.

func (*Client) GetServiceAccount

func (c *Client) GetServiceAccount(namespace, name string) (*v1.ServiceAccount, error)

GetServiceAccount returns the existing serviceAccount.

func (*Client) KubernetesInterface

func (c *Client) KubernetesInterface() kubernetes.Interface

KubernetesInterface returns the Kubernetes interface.

func (*Client) ListCustomResource

func (c *Client) ListCustomResource(apiGroup, version, namespace, resourceKind string) (*CustomResourceList, error)

ListCustomResource lists all custom resources for the given namespace.

func (*Client) ListDeploymentsWithLabels

func (c *Client) ListDeploymentsWithLabels(namespace string, labels labels.Set) (*appsv1.DeploymentList, error)

ListDeploymentsWithLabels returns a list of deployments that matches the label selector. An empty list will be returned if no such deployments is found.

func (*Client) PatchDeployment

func (c *Client) PatchDeployment(original, modified *appsv1.Deployment) (*appsv1.Deployment, bool, error)

PatchDeployment updates a Deployment object by performing a 3-way patch merge between the existing Deployment and `original` and `modified` manifests.

Returns the latest Deployment and true if it was updated, or an error.

func (*Client) RollingPatchDeployment

func (c *Client) RollingPatchDeployment(original, modified *appsv1.Deployment) (*appsv1.Deployment, bool, error)

RollingPatchDeployment performs a 3-way patch merge followed by rolling update on the given Deployment. It requires that the Deployment uses the RollingUpdateDeploymentStrategyType update strategy.

RollingPatchDeployment will run any before / after migrations that have been specified in the upgrade options.

func (*Client) RollingPatchDeploymentMigrations

func (c *Client) RollingPatchDeploymentMigrations(namespace, name string, f PatchFunction) (*appsv1.Deployment, bool, error)

RollingPatchDeploymentMigrations performs a 3-way patch merge followed by rolling update on the given Deployment. It requires that the Deployment uses the RollingUpdateDeploymentStrategyType update strategy.

RollingPatchDeploymentMigrations will run any before / after migrations that have been specified in the upgrade options.

func (*Client) RollingUpdateDeployment

func (c *Client) RollingUpdateDeployment(dep *appsv1.Deployment) (*appsv1.Deployment, bool, error)

RollingUpdateDeployment performs a rolling update on the given Deployment. It requires that the Deployment uses the RollingUpdateDeploymentStrategyType update strategy.

func (*Client) RollingUpdateDeploymentMigrations

func (c *Client) RollingUpdateDeploymentMigrations(namespace, name string, f UpdateFunction) (*appsv1.Deployment, bool, error)

RollingUpdateDeploymentMigrations performs a rolling update on the given Deployment. It requires that the Deployment uses the RollingUpdateDeploymentStrategyType update strategy.

RollingUpdateDeploymentMigrations will run any before / during / after migrations that have been specified in the upgrade options.

func (*Client) UpdateAPIService

func (c *Client) UpdateAPIService(apiService *apiregistrationv1.APIService) (*apiregistrationv1.APIService, error)

UpdateAPIService will update the given APIService resource.

func (*Client) UpdateClusterRole

func (c *Client) UpdateClusterRole(crb *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)

UpdateClusterRole will update the given ClusterRole.

func (*Client) UpdateClusterRoleBinding

func (c *Client) UpdateClusterRoleBinding(crb *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)

UpdateRoleBinding will update the given RoleBinding resource.

func (*Client) UpdateCustomResource

func (c *Client) UpdateCustomResource(item *unstructured.Unstructured) error

UpdateCustomResource updates the custom resource. To do an atomic update, use AtomicModifyCustomResource().

func (*Client) UpdateCustomResourceRaw

func (c *Client) UpdateCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string, data []byte) error

UpdateCustomResourceRaw updates the thirdparty resource with the raw data.

func (*Client) UpdateDeployment

func (c *Client) UpdateDeployment(dep *appsv1.Deployment) (*appsv1.Deployment, bool, error)

UpdateDeployment updates a Deployment object by performing a 2-way patch between the existing Deployment and the result of the UpdateFunction.

Returns the latest Deployment and true if it was updated, or an error.

func (*Client) UpdateRole

func (c *Client) UpdateRole(crb *rbacv1.Role) (*rbacv1.Role, error)

UpdateRole will update the given Role resource.

func (*Client) UpdateRoleBinding

func (c *Client) UpdateRoleBinding(crb *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)

UpdateRoleBinding will update the given RoleBinding resource.

func (*Client) UpdateSecret

func (c *Client) UpdateSecret(secret *v1.Secret) (*v1.Secret, error)

UpdateSecret will update the given Secret resource.

func (*Client) UpdateService

func (c *Client) UpdateService(service *v1.Service) (*v1.Service, error)

UpdateService will update the given Service resource.

func (*Client) UpdateServiceAccount

func (c *Client) UpdateServiceAccount(sa *v1.ServiceAccount) (*v1.ServiceAccount, error)

UpdateServiceAccount will update the given ServiceAccount resource.

type ClientInterface

func NewClient

func NewClient(k8sClient kubernetes.Interface, extclient apiextensions.Interface, regclient apiregistration.Interface) ClientInterface

NewClient creates a kubernetes client

func NewClientFromConfig

func NewClientFromConfig(kubeconfig string, logger *logrus.Logger) ClientInterface

NewClient creates a kubernetes client or bails out on on failures.

type ClusterRoleBindingClient

type ClusterRoleBindingClient interface {
	CreateClusterRoleBinding(*rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)
	GetClusterRoleBinding(name string) (*rbacv1.ClusterRoleBinding, error)
	UpdateClusterRoleBinding(modified *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)
	DeleteClusterRoleBinding(name string, options *metav1.DeleteOptions) error
}

ClusterRoleBindingClient contains methods for manipulating ClusterRoleBindings.

type ClusterRoleClient

type ClusterRoleClient interface {
	CreateClusterRole(*rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)
	GetClusterRole(name string) (*rbacv1.ClusterRole, error)
	UpdateClusterRole(modified *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)
	DeleteClusterRole(name string, options *metav1.DeleteOptions) error
}

ClusterRoleClient contains methods for manipulating ClusterRoleBindings.

type CustomResourceClient

type CustomResourceClient interface {
	GetCustomResource(apiGroup, version, namespace, resourceKind, resourceName string) (*unstructured.Unstructured, error)
	GetCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string) ([]byte, error)
	CreateCustomResource(item *unstructured.Unstructured) error
	CreateCustomResourceRaw(apiGroup, version, namespace, kind string, data []byte) error
	CreateCustomResourceRawIfNotFound(apiGroup, version, namespace, kind, name string, data []byte) (bool, error)
	UpdateCustomResource(item *unstructured.Unstructured) error
	UpdateCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string, data []byte) error
	CreateOrUpdateCustomeResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string, data []byte) error
	DeleteCustomResource(apiGroup, version, namespace, resourceKind, resourceName string) error
	AtomicModifyCustomResource(apiGroup, version, namespace, resourceKind, resourceName string, f CustomResourceModifier, data interface{}) error
	ListCustomResource(apiGroup, version, namespace, resourceKind string) (*CustomResourceList, error)
}

CustomResourceClient contains methods for the Custom Resource.

type CustomResourceList

type CustomResourceList struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Items []*unstructured.Unstructured `json:"items"`
}

CustomResourceList represents a list of custom resource objects that will be returned from a List() operation.

type CustomResourceModifier

type CustomResourceModifier func(*unstructured.Unstructured, interface{}) error

CustomResourceModifier takes the custom resource object, and modifies it in-place.

type DeploymentClient

type DeploymentClient interface {
	GetDeployment(namespace, name string) (*appsv1.Deployment, error)
	CreateDeployment(*appsv1.Deployment) (*appsv1.Deployment, error)
	DeleteDeployment(namespace, name string, options *metav1.DeleteOptions) error
	UpdateDeployment(*appsv1.Deployment) (*appsv1.Deployment, bool, error)
	PatchDeployment(*appsv1.Deployment, *appsv1.Deployment) (*appsv1.Deployment, bool, error)
	RollingUpdateDeployment(*appsv1.Deployment) (*appsv1.Deployment, bool, error)
	RollingPatchDeployment(*appsv1.Deployment, *appsv1.Deployment) (*appsv1.Deployment, bool, error)
	RollingUpdateDeploymentMigrations(namespace, name string, f UpdateFunction) (*appsv1.Deployment, bool, error)
	RollingPatchDeploymentMigrations(namespace, name string, f PatchFunction) (*appsv1.Deployment, bool, error)
	CreateOrRollingUpdateDeployment(*appsv1.Deployment) (*appsv1.Deployment, bool, error)
	ListDeploymentsWithLabels(namespace string, labels labels.Set) (*appsv1.DeploymentList, error)
}

DeploymentClient contains methods for the Deployment resource.

type MockAPIServiceClient

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

MockAPIServiceClient is a mock of APIServiceClient interface

func NewMockAPIServiceClient

func NewMockAPIServiceClient(ctrl *gomock.Controller) *MockAPIServiceClient

NewMockAPIServiceClient creates a new mock instance

func (*MockAPIServiceClient) CreateAPIService

func (m *MockAPIServiceClient) CreateAPIService(arg0 *v13.APIService) (*v13.APIService, error)

CreateAPIService mocks base method

func (*MockAPIServiceClient) DeleteAPIService

func (m *MockAPIServiceClient) DeleteAPIService(name string, options *v12.DeleteOptions) error

DeleteAPIService mocks base method

func (*MockAPIServiceClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAPIServiceClient) GetAPIService

func (m *MockAPIServiceClient) GetAPIService(name string) (*v13.APIService, error)

GetAPIService mocks base method

func (*MockAPIServiceClient) UpdateAPIService

func (m *MockAPIServiceClient) UpdateAPIService(modified *v13.APIService) (*v13.APIService, error)

UpdateAPIService mocks base method

type MockAPIServiceClientMockRecorder

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

MockAPIServiceClientMockRecorder is the mock recorder for MockAPIServiceClient

func (*MockAPIServiceClientMockRecorder) CreateAPIService

func (mr *MockAPIServiceClientMockRecorder) CreateAPIService(arg0 interface{}) *gomock.Call

CreateAPIService indicates an expected call of CreateAPIService

func (*MockAPIServiceClientMockRecorder) DeleteAPIService

func (mr *MockAPIServiceClientMockRecorder) DeleteAPIService(name, options interface{}) *gomock.Call

DeleteAPIService indicates an expected call of DeleteAPIService

func (*MockAPIServiceClientMockRecorder) GetAPIService

func (mr *MockAPIServiceClientMockRecorder) GetAPIService(name interface{}) *gomock.Call

GetAPIService indicates an expected call of GetAPIService

func (*MockAPIServiceClientMockRecorder) UpdateAPIService

func (mr *MockAPIServiceClientMockRecorder) UpdateAPIService(modified interface{}) *gomock.Call

UpdateAPIService indicates an expected call of UpdateAPIService

type MockClientInterface

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

MockClientInterface is a mock of ClientInterface interface

func NewMockClientInterface

func NewMockClientInterface(ctrl *gomock.Controller) *MockClientInterface

NewMockClientInterface creates a new mock instance

func (*MockClientInterface) ApiextensionsV1beta1Interface

func (m *MockClientInterface) ApiextensionsV1beta1Interface() clientset.Interface

ApiextensionsV1beta1Interface mocks base method

func (*MockClientInterface) ApiregistrationV1Interface

func (m *MockClientInterface) ApiregistrationV1Interface() clientset0.Interface

ApiregistrationV1Interface mocks base method

func (*MockClientInterface) AtomicModifyCustomResource

func (m *MockClientInterface) AtomicModifyCustomResource(apiGroup, version, namespace, resourceKind, resourceName string, f CustomResourceModifier, data interface{}) error

AtomicModifyCustomResource mocks base method

func (*MockClientInterface) CreateAPIService

func (m *MockClientInterface) CreateAPIService(arg0 *v13.APIService) (*v13.APIService, error)

CreateAPIService mocks base method

func (*MockClientInterface) CreateClusterRole

func (m *MockClientInterface) CreateClusterRole(arg0 *v11.ClusterRole) (*v11.ClusterRole, error)

CreateClusterRole mocks base method

func (*MockClientInterface) CreateClusterRoleBinding

func (m *MockClientInterface) CreateClusterRoleBinding(arg0 *v11.ClusterRoleBinding) (*v11.ClusterRoleBinding, error)

CreateClusterRoleBinding mocks base method

func (*MockClientInterface) CreateCustomResource

func (m *MockClientInterface) CreateCustomResource(item *unstructured.Unstructured) error

CreateCustomResource mocks base method

func (*MockClientInterface) CreateCustomResourceRaw

func (m *MockClientInterface) CreateCustomResourceRaw(apiGroup, version, namespace, kind string, data []byte) error

CreateCustomResourceRaw mocks base method

func (*MockClientInterface) CreateCustomResourceRawIfNotFound

func (m *MockClientInterface) CreateCustomResourceRawIfNotFound(apiGroup, version, namespace, kind, name string, data []byte) (bool, error)

CreateCustomResourceRawIfNotFound mocks base method

func (*MockClientInterface) CreateDeployment

func (m *MockClientInterface) CreateDeployment(arg0 *v1.Deployment) (*v1.Deployment, error)

CreateDeployment mocks base method

func (*MockClientInterface) CreateOrRollingUpdateDeployment

func (m *MockClientInterface) CreateOrRollingUpdateDeployment(arg0 *v1.Deployment) (*v1.Deployment, bool, error)

CreateOrRollingUpdateDeployment mocks base method

func (*MockClientInterface) CreateOrUpdateCustomeResourceRaw

func (m *MockClientInterface) CreateOrUpdateCustomeResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string, data []byte) error

CreateOrUpdateCustomeResourceRaw mocks base method

func (*MockClientInterface) CreateRole

func (m *MockClientInterface) CreateRole(arg0 *v11.Role) (*v11.Role, error)

CreateRole mocks base method

func (*MockClientInterface) CreateRoleBinding

func (m *MockClientInterface) CreateRoleBinding(arg0 *v11.RoleBinding) (*v11.RoleBinding, error)

CreateRoleBinding mocks base method

func (*MockClientInterface) CreateSecret

func (m *MockClientInterface) CreateSecret(arg0 *v10.Secret) (*v10.Secret, error)

CreateSecret mocks base method

func (*MockClientInterface) CreateService

func (m *MockClientInterface) CreateService(arg0 *v10.Service) (*v10.Service, error)

CreateService mocks base method

func (*MockClientInterface) CreateServiceAccount

func (m *MockClientInterface) CreateServiceAccount(arg0 *v10.ServiceAccount) (*v10.ServiceAccount, error)

CreateServiceAccount mocks base method

func (*MockClientInterface) DeleteAPIService

func (m *MockClientInterface) DeleteAPIService(name string, options *v12.DeleteOptions) error

DeleteAPIService mocks base method

func (*MockClientInterface) DeleteClusterRole

func (m *MockClientInterface) DeleteClusterRole(name string, options *v12.DeleteOptions) error

DeleteClusterRole mocks base method

func (*MockClientInterface) DeleteClusterRoleBinding

func (m *MockClientInterface) DeleteClusterRoleBinding(name string, options *v12.DeleteOptions) error

DeleteClusterRoleBinding mocks base method

func (*MockClientInterface) DeleteCustomResource

func (m *MockClientInterface) DeleteCustomResource(apiGroup, version, namespace, resourceKind, resourceName string) error

DeleteCustomResource mocks base method

func (*MockClientInterface) DeleteDeployment

func (m *MockClientInterface) DeleteDeployment(namespace, name string, options *v12.DeleteOptions) error

DeleteDeployment mocks base method

func (*MockClientInterface) DeleteRole

func (m *MockClientInterface) DeleteRole(namespace, name string, options *v12.DeleteOptions) error

DeleteRole mocks base method

func (*MockClientInterface) DeleteRoleBinding

func (m *MockClientInterface) DeleteRoleBinding(namespace, name string, options *v12.DeleteOptions) error

DeleteRoleBinding mocks base method

func (*MockClientInterface) DeleteSecret

func (m *MockClientInterface) DeleteSecret(namespace, name string, options *v12.DeleteOptions) error

DeleteSecret mocks base method

func (*MockClientInterface) DeleteService

func (m *MockClientInterface) DeleteService(namespace, name string, options *v12.DeleteOptions) error

DeleteService mocks base method

func (*MockClientInterface) DeleteServiceAccount

func (m *MockClientInterface) DeleteServiceAccount(namespace, name string, options *v12.DeleteOptions) error

DeleteServiceAccount mocks base method

func (*MockClientInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockClientInterface) GetAPIService

func (m *MockClientInterface) GetAPIService(name string) (*v13.APIService, error)

GetAPIService mocks base method

func (*MockClientInterface) GetClusterRole

func (m *MockClientInterface) GetClusterRole(name string) (*v11.ClusterRole, error)

GetClusterRole mocks base method

func (*MockClientInterface) GetClusterRoleBinding

func (m *MockClientInterface) GetClusterRoleBinding(name string) (*v11.ClusterRoleBinding, error)

GetClusterRoleBinding mocks base method

func (*MockClientInterface) GetCustomResource

func (m *MockClientInterface) GetCustomResource(apiGroup, version, namespace, resourceKind, resourceName string) (*unstructured.Unstructured, error)

GetCustomResource mocks base method

func (*MockClientInterface) GetCustomResourceRaw

func (m *MockClientInterface) GetCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string) ([]byte, error)

GetCustomResourceRaw mocks base method

func (*MockClientInterface) GetDeployment

func (m *MockClientInterface) GetDeployment(namespace, name string) (*v1.Deployment, error)

GetDeployment mocks base method

func (*MockClientInterface) GetRole

func (m *MockClientInterface) GetRole(namespace, name string) (*v11.Role, error)

GetRole mocks base method

func (*MockClientInterface) GetRoleBinding

func (m *MockClientInterface) GetRoleBinding(namespace, name string) (*v11.RoleBinding, error)

GetRoleBinding mocks base method

func (*MockClientInterface) GetSecret

func (m *MockClientInterface) GetSecret(namespace, name string) (*v10.Secret, error)

GetSecret mocks base method

func (*MockClientInterface) GetService

func (m *MockClientInterface) GetService(namespace, name string) (*v10.Service, error)

GetService mocks base method

func (*MockClientInterface) GetServiceAccount

func (m *MockClientInterface) GetServiceAccount(namespace, name string) (*v10.ServiceAccount, error)

GetServiceAccount mocks base method

func (*MockClientInterface) KubernetesInterface

func (m *MockClientInterface) KubernetesInterface() kubernetes.Interface

KubernetesInterface mocks base method

func (*MockClientInterface) ListCustomResource

func (m *MockClientInterface) ListCustomResource(apiGroup, version, namespace, resourceKind string) (*CustomResourceList, error)

ListCustomResource mocks base method

func (*MockClientInterface) ListDeploymentsWithLabels

func (m *MockClientInterface) ListDeploymentsWithLabels(namespace string, labels labels.Set) (*v1.DeploymentList, error)

ListDeploymentsWithLabels mocks base method

func (*MockClientInterface) PatchDeployment

func (m *MockClientInterface) PatchDeployment(arg0, arg1 *v1.Deployment) (*v1.Deployment, bool, error)

PatchDeployment mocks base method

func (*MockClientInterface) RollingPatchDeployment

func (m *MockClientInterface) RollingPatchDeployment(arg0, arg1 *v1.Deployment) (*v1.Deployment, bool, error)

RollingPatchDeployment mocks base method

func (*MockClientInterface) RollingPatchDeploymentMigrations

func (m *MockClientInterface) RollingPatchDeploymentMigrations(namespace, name string, f PatchFunction) (*v1.Deployment, bool, error)

RollingPatchDeploymentMigrations mocks base method

func (*MockClientInterface) RollingUpdateDeployment

func (m *MockClientInterface) RollingUpdateDeployment(arg0 *v1.Deployment) (*v1.Deployment, bool, error)

RollingUpdateDeployment mocks base method

func (*MockClientInterface) RollingUpdateDeploymentMigrations

func (m *MockClientInterface) RollingUpdateDeploymentMigrations(namespace, name string, f UpdateFunction) (*v1.Deployment, bool, error)

RollingUpdateDeploymentMigrations mocks base method

func (*MockClientInterface) UpdateAPIService

func (m *MockClientInterface) UpdateAPIService(modified *v13.APIService) (*v13.APIService, error)

UpdateAPIService mocks base method

func (*MockClientInterface) UpdateClusterRole

func (m *MockClientInterface) UpdateClusterRole(modified *v11.ClusterRole) (*v11.ClusterRole, error)

UpdateClusterRole mocks base method

func (*MockClientInterface) UpdateClusterRoleBinding

func (m *MockClientInterface) UpdateClusterRoleBinding(modified *v11.ClusterRoleBinding) (*v11.ClusterRoleBinding, error)

UpdateClusterRoleBinding mocks base method

func (*MockClientInterface) UpdateCustomResource

func (m *MockClientInterface) UpdateCustomResource(item *unstructured.Unstructured) error

UpdateCustomResource mocks base method

func (*MockClientInterface) UpdateCustomResourceRaw

func (m *MockClientInterface) UpdateCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string, data []byte) error

UpdateCustomResourceRaw mocks base method

func (*MockClientInterface) UpdateDeployment

func (m *MockClientInterface) UpdateDeployment(arg0 *v1.Deployment) (*v1.Deployment, bool, error)

UpdateDeployment mocks base method

func (*MockClientInterface) UpdateRole

func (m *MockClientInterface) UpdateRole(modified *v11.Role) (*v11.Role, error)

UpdateRole mocks base method

func (*MockClientInterface) UpdateRoleBinding

func (m *MockClientInterface) UpdateRoleBinding(modified *v11.RoleBinding) (*v11.RoleBinding, error)

UpdateRoleBinding mocks base method

func (*MockClientInterface) UpdateSecret

func (m *MockClientInterface) UpdateSecret(modified *v10.Secret) (*v10.Secret, error)

UpdateSecret mocks base method

func (*MockClientInterface) UpdateService

func (m *MockClientInterface) UpdateService(modified *v10.Service) (*v10.Service, error)

UpdateService mocks base method

func (*MockClientInterface) UpdateServiceAccount

func (m *MockClientInterface) UpdateServiceAccount(modified *v10.ServiceAccount) (*v10.ServiceAccount, error)

UpdateServiceAccount mocks base method

type MockClientInterfaceMockRecorder

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

MockClientInterfaceMockRecorder is the mock recorder for MockClientInterface

func (*MockClientInterfaceMockRecorder) ApiextensionsV1beta1Interface

func (mr *MockClientInterfaceMockRecorder) ApiextensionsV1beta1Interface() *gomock.Call

ApiextensionsV1beta1Interface indicates an expected call of ApiextensionsV1beta1Interface

func (*MockClientInterfaceMockRecorder) ApiregistrationV1Interface

func (mr *MockClientInterfaceMockRecorder) ApiregistrationV1Interface() *gomock.Call

ApiregistrationV1Interface indicates an expected call of ApiregistrationV1Interface

func (*MockClientInterfaceMockRecorder) AtomicModifyCustomResource

func (mr *MockClientInterfaceMockRecorder) AtomicModifyCustomResource(apiGroup, version, namespace, resourceKind, resourceName, f, data interface{}) *gomock.Call

AtomicModifyCustomResource indicates an expected call of AtomicModifyCustomResource

func (*MockClientInterfaceMockRecorder) CreateAPIService

func (mr *MockClientInterfaceMockRecorder) CreateAPIService(arg0 interface{}) *gomock.Call

CreateAPIService indicates an expected call of CreateAPIService

func (*MockClientInterfaceMockRecorder) CreateClusterRole

func (mr *MockClientInterfaceMockRecorder) CreateClusterRole(arg0 interface{}) *gomock.Call

CreateClusterRole indicates an expected call of CreateClusterRole

func (*MockClientInterfaceMockRecorder) CreateClusterRoleBinding

func (mr *MockClientInterfaceMockRecorder) CreateClusterRoleBinding(arg0 interface{}) *gomock.Call

CreateClusterRoleBinding indicates an expected call of CreateClusterRoleBinding

func (*MockClientInterfaceMockRecorder) CreateCustomResource

func (mr *MockClientInterfaceMockRecorder) CreateCustomResource(item interface{}) *gomock.Call

CreateCustomResource indicates an expected call of CreateCustomResource

func (*MockClientInterfaceMockRecorder) CreateCustomResourceRaw

func (mr *MockClientInterfaceMockRecorder) CreateCustomResourceRaw(apiGroup, version, namespace, kind, data interface{}) *gomock.Call

CreateCustomResourceRaw indicates an expected call of CreateCustomResourceRaw

func (*MockClientInterfaceMockRecorder) CreateCustomResourceRawIfNotFound

func (mr *MockClientInterfaceMockRecorder) CreateCustomResourceRawIfNotFound(apiGroup, version, namespace, kind, name, data interface{}) *gomock.Call

CreateCustomResourceRawIfNotFound indicates an expected call of CreateCustomResourceRawIfNotFound

func (*MockClientInterfaceMockRecorder) CreateDeployment

func (mr *MockClientInterfaceMockRecorder) CreateDeployment(arg0 interface{}) *gomock.Call

CreateDeployment indicates an expected call of CreateDeployment

func (*MockClientInterfaceMockRecorder) CreateOrRollingUpdateDeployment

func (mr *MockClientInterfaceMockRecorder) CreateOrRollingUpdateDeployment(arg0 interface{}) *gomock.Call

CreateOrRollingUpdateDeployment indicates an expected call of CreateOrRollingUpdateDeployment

func (*MockClientInterfaceMockRecorder) CreateOrUpdateCustomeResourceRaw

func (mr *MockClientInterfaceMockRecorder) CreateOrUpdateCustomeResourceRaw(apiGroup, version, namespace, resourceKind, resourceName, data interface{}) *gomock.Call

CreateOrUpdateCustomeResourceRaw indicates an expected call of CreateOrUpdateCustomeResourceRaw

func (*MockClientInterfaceMockRecorder) CreateRole

func (mr *MockClientInterfaceMockRecorder) CreateRole(arg0 interface{}) *gomock.Call

CreateRole indicates an expected call of CreateRole

func (*MockClientInterfaceMockRecorder) CreateRoleBinding

func (mr *MockClientInterfaceMockRecorder) CreateRoleBinding(arg0 interface{}) *gomock.Call

CreateRoleBinding indicates an expected call of CreateRoleBinding

func (*MockClientInterfaceMockRecorder) CreateSecret

func (mr *MockClientInterfaceMockRecorder) CreateSecret(arg0 interface{}) *gomock.Call

CreateSecret indicates an expected call of CreateSecret

func (*MockClientInterfaceMockRecorder) CreateService

func (mr *MockClientInterfaceMockRecorder) CreateService(arg0 interface{}) *gomock.Call

CreateService indicates an expected call of CreateService

func (*MockClientInterfaceMockRecorder) CreateServiceAccount

func (mr *MockClientInterfaceMockRecorder) CreateServiceAccount(arg0 interface{}) *gomock.Call

CreateServiceAccount indicates an expected call of CreateServiceAccount

func (*MockClientInterfaceMockRecorder) DeleteAPIService

func (mr *MockClientInterfaceMockRecorder) DeleteAPIService(name, options interface{}) *gomock.Call

DeleteAPIService indicates an expected call of DeleteAPIService

func (*MockClientInterfaceMockRecorder) DeleteClusterRole

func (mr *MockClientInterfaceMockRecorder) DeleteClusterRole(name, options interface{}) *gomock.Call

DeleteClusterRole indicates an expected call of DeleteClusterRole

func (*MockClientInterfaceMockRecorder) DeleteClusterRoleBinding

func (mr *MockClientInterfaceMockRecorder) DeleteClusterRoleBinding(name, options interface{}) *gomock.Call

DeleteClusterRoleBinding indicates an expected call of DeleteClusterRoleBinding

func (*MockClientInterfaceMockRecorder) DeleteCustomResource

func (mr *MockClientInterfaceMockRecorder) DeleteCustomResource(apiGroup, version, namespace, resourceKind, resourceName interface{}) *gomock.Call

DeleteCustomResource indicates an expected call of DeleteCustomResource

func (*MockClientInterfaceMockRecorder) DeleteDeployment

func (mr *MockClientInterfaceMockRecorder) DeleteDeployment(namespace, name, options interface{}) *gomock.Call

DeleteDeployment indicates an expected call of DeleteDeployment

func (*MockClientInterfaceMockRecorder) DeleteRole

func (mr *MockClientInterfaceMockRecorder) DeleteRole(namespace, name, options interface{}) *gomock.Call

DeleteRole indicates an expected call of DeleteRole

func (*MockClientInterfaceMockRecorder) DeleteRoleBinding

func (mr *MockClientInterfaceMockRecorder) DeleteRoleBinding(namespace, name, options interface{}) *gomock.Call

DeleteRoleBinding indicates an expected call of DeleteRoleBinding

func (*MockClientInterfaceMockRecorder) DeleteSecret

func (mr *MockClientInterfaceMockRecorder) DeleteSecret(namespace, name, options interface{}) *gomock.Call

DeleteSecret indicates an expected call of DeleteSecret

func (*MockClientInterfaceMockRecorder) DeleteService

func (mr *MockClientInterfaceMockRecorder) DeleteService(namespace, name, options interface{}) *gomock.Call

DeleteService indicates an expected call of DeleteService

func (*MockClientInterfaceMockRecorder) DeleteServiceAccount

func (mr *MockClientInterfaceMockRecorder) DeleteServiceAccount(namespace, name, options interface{}) *gomock.Call

DeleteServiceAccount indicates an expected call of DeleteServiceAccount

func (*MockClientInterfaceMockRecorder) GetAPIService

func (mr *MockClientInterfaceMockRecorder) GetAPIService(name interface{}) *gomock.Call

GetAPIService indicates an expected call of GetAPIService

func (*MockClientInterfaceMockRecorder) GetClusterRole

func (mr *MockClientInterfaceMockRecorder) GetClusterRole(name interface{}) *gomock.Call

GetClusterRole indicates an expected call of GetClusterRole

func (*MockClientInterfaceMockRecorder) GetClusterRoleBinding

func (mr *MockClientInterfaceMockRecorder) GetClusterRoleBinding(name interface{}) *gomock.Call

GetClusterRoleBinding indicates an expected call of GetClusterRoleBinding

func (*MockClientInterfaceMockRecorder) GetCustomResource

func (mr *MockClientInterfaceMockRecorder) GetCustomResource(apiGroup, version, namespace, resourceKind, resourceName interface{}) *gomock.Call

GetCustomResource indicates an expected call of GetCustomResource

func (*MockClientInterfaceMockRecorder) GetCustomResourceRaw

func (mr *MockClientInterfaceMockRecorder) GetCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName interface{}) *gomock.Call

GetCustomResourceRaw indicates an expected call of GetCustomResourceRaw

func (*MockClientInterfaceMockRecorder) GetDeployment

func (mr *MockClientInterfaceMockRecorder) GetDeployment(namespace, name interface{}) *gomock.Call

GetDeployment indicates an expected call of GetDeployment

func (*MockClientInterfaceMockRecorder) GetRole

func (mr *MockClientInterfaceMockRecorder) GetRole(namespace, name interface{}) *gomock.Call

GetRole indicates an expected call of GetRole

func (*MockClientInterfaceMockRecorder) GetRoleBinding

func (mr *MockClientInterfaceMockRecorder) GetRoleBinding(namespace, name interface{}) *gomock.Call

GetRoleBinding indicates an expected call of GetRoleBinding

func (*MockClientInterfaceMockRecorder) GetSecret

func (mr *MockClientInterfaceMockRecorder) GetSecret(namespace, name interface{}) *gomock.Call

GetSecret indicates an expected call of GetSecret

func (*MockClientInterfaceMockRecorder) GetService

func (mr *MockClientInterfaceMockRecorder) GetService(namespace, name interface{}) *gomock.Call

GetService indicates an expected call of GetService

func (*MockClientInterfaceMockRecorder) GetServiceAccount

func (mr *MockClientInterfaceMockRecorder) GetServiceAccount(namespace, name interface{}) *gomock.Call

GetServiceAccount indicates an expected call of GetServiceAccount

func (*MockClientInterfaceMockRecorder) KubernetesInterface

func (mr *MockClientInterfaceMockRecorder) KubernetesInterface() *gomock.Call

KubernetesInterface indicates an expected call of KubernetesInterface

func (*MockClientInterfaceMockRecorder) ListCustomResource

func (mr *MockClientInterfaceMockRecorder) ListCustomResource(apiGroup, version, namespace, resourceKind interface{}) *gomock.Call

ListCustomResource indicates an expected call of ListCustomResource

func (*MockClientInterfaceMockRecorder) ListDeploymentsWithLabels

func (mr *MockClientInterfaceMockRecorder) ListDeploymentsWithLabels(namespace, labels interface{}) *gomock.Call

ListDeploymentsWithLabels indicates an expected call of ListDeploymentsWithLabels

func (*MockClientInterfaceMockRecorder) PatchDeployment

func (mr *MockClientInterfaceMockRecorder) PatchDeployment(arg0, arg1 interface{}) *gomock.Call

PatchDeployment indicates an expected call of PatchDeployment

func (*MockClientInterfaceMockRecorder) RollingPatchDeployment

func (mr *MockClientInterfaceMockRecorder) RollingPatchDeployment(arg0, arg1 interface{}) *gomock.Call

RollingPatchDeployment indicates an expected call of RollingPatchDeployment

func (*MockClientInterfaceMockRecorder) RollingPatchDeploymentMigrations

func (mr *MockClientInterfaceMockRecorder) RollingPatchDeploymentMigrations(namespace, name, f interface{}) *gomock.Call

RollingPatchDeploymentMigrations indicates an expected call of RollingPatchDeploymentMigrations

func (*MockClientInterfaceMockRecorder) RollingUpdateDeployment

func (mr *MockClientInterfaceMockRecorder) RollingUpdateDeployment(arg0 interface{}) *gomock.Call

RollingUpdateDeployment indicates an expected call of RollingUpdateDeployment

func (*MockClientInterfaceMockRecorder) RollingUpdateDeploymentMigrations

func (mr *MockClientInterfaceMockRecorder) RollingUpdateDeploymentMigrations(namespace, name, f interface{}) *gomock.Call

RollingUpdateDeploymentMigrations indicates an expected call of RollingUpdateDeploymentMigrations

func (*MockClientInterfaceMockRecorder) UpdateAPIService

func (mr *MockClientInterfaceMockRecorder) UpdateAPIService(modified interface{}) *gomock.Call

UpdateAPIService indicates an expected call of UpdateAPIService

func (*MockClientInterfaceMockRecorder) UpdateClusterRole

func (mr *MockClientInterfaceMockRecorder) UpdateClusterRole(modified interface{}) *gomock.Call

UpdateClusterRole indicates an expected call of UpdateClusterRole

func (*MockClientInterfaceMockRecorder) UpdateClusterRoleBinding

func (mr *MockClientInterfaceMockRecorder) UpdateClusterRoleBinding(modified interface{}) *gomock.Call

UpdateClusterRoleBinding indicates an expected call of UpdateClusterRoleBinding

func (*MockClientInterfaceMockRecorder) UpdateCustomResource

func (mr *MockClientInterfaceMockRecorder) UpdateCustomResource(item interface{}) *gomock.Call

UpdateCustomResource indicates an expected call of UpdateCustomResource

func (*MockClientInterfaceMockRecorder) UpdateCustomResourceRaw

func (mr *MockClientInterfaceMockRecorder) UpdateCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName, data interface{}) *gomock.Call

UpdateCustomResourceRaw indicates an expected call of UpdateCustomResourceRaw

func (*MockClientInterfaceMockRecorder) UpdateDeployment

func (mr *MockClientInterfaceMockRecorder) UpdateDeployment(arg0 interface{}) *gomock.Call

UpdateDeployment indicates an expected call of UpdateDeployment

func (*MockClientInterfaceMockRecorder) UpdateRole

func (mr *MockClientInterfaceMockRecorder) UpdateRole(modified interface{}) *gomock.Call

UpdateRole indicates an expected call of UpdateRole

func (*MockClientInterfaceMockRecorder) UpdateRoleBinding

func (mr *MockClientInterfaceMockRecorder) UpdateRoleBinding(modified interface{}) *gomock.Call

UpdateRoleBinding indicates an expected call of UpdateRoleBinding

func (*MockClientInterfaceMockRecorder) UpdateSecret

func (mr *MockClientInterfaceMockRecorder) UpdateSecret(modified interface{}) *gomock.Call

UpdateSecret indicates an expected call of UpdateSecret

func (*MockClientInterfaceMockRecorder) UpdateService

func (mr *MockClientInterfaceMockRecorder) UpdateService(modified interface{}) *gomock.Call

UpdateService indicates an expected call of UpdateService

func (*MockClientInterfaceMockRecorder) UpdateServiceAccount

func (mr *MockClientInterfaceMockRecorder) UpdateServiceAccount(modified interface{}) *gomock.Call

UpdateServiceAccount indicates an expected call of UpdateServiceAccount

type MockClusterRoleBindingClient

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

MockClusterRoleBindingClient is a mock of ClusterRoleBindingClient interface

func NewMockClusterRoleBindingClient

func NewMockClusterRoleBindingClient(ctrl *gomock.Controller) *MockClusterRoleBindingClient

NewMockClusterRoleBindingClient creates a new mock instance

func (*MockClusterRoleBindingClient) CreateClusterRoleBinding

func (m *MockClusterRoleBindingClient) CreateClusterRoleBinding(arg0 *v11.ClusterRoleBinding) (*v11.ClusterRoleBinding, error)

CreateClusterRoleBinding mocks base method

func (*MockClusterRoleBindingClient) DeleteClusterRoleBinding

func (m *MockClusterRoleBindingClient) DeleteClusterRoleBinding(name string, options *v12.DeleteOptions) error

DeleteClusterRoleBinding mocks base method

func (*MockClusterRoleBindingClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockClusterRoleBindingClient) GetClusterRoleBinding

func (m *MockClusterRoleBindingClient) GetClusterRoleBinding(name string) (*v11.ClusterRoleBinding, error)

GetClusterRoleBinding mocks base method

func (*MockClusterRoleBindingClient) UpdateClusterRoleBinding

func (m *MockClusterRoleBindingClient) UpdateClusterRoleBinding(modified *v11.ClusterRoleBinding) (*v11.ClusterRoleBinding, error)

UpdateClusterRoleBinding mocks base method

type MockClusterRoleBindingClientMockRecorder

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

MockClusterRoleBindingClientMockRecorder is the mock recorder for MockClusterRoleBindingClient

func (*MockClusterRoleBindingClientMockRecorder) CreateClusterRoleBinding

func (mr *MockClusterRoleBindingClientMockRecorder) CreateClusterRoleBinding(arg0 interface{}) *gomock.Call

CreateClusterRoleBinding indicates an expected call of CreateClusterRoleBinding

func (*MockClusterRoleBindingClientMockRecorder) DeleteClusterRoleBinding

func (mr *MockClusterRoleBindingClientMockRecorder) DeleteClusterRoleBinding(name, options interface{}) *gomock.Call

DeleteClusterRoleBinding indicates an expected call of DeleteClusterRoleBinding

func (*MockClusterRoleBindingClientMockRecorder) GetClusterRoleBinding

func (mr *MockClusterRoleBindingClientMockRecorder) GetClusterRoleBinding(name interface{}) *gomock.Call

GetClusterRoleBinding indicates an expected call of GetClusterRoleBinding

func (*MockClusterRoleBindingClientMockRecorder) UpdateClusterRoleBinding

func (mr *MockClusterRoleBindingClientMockRecorder) UpdateClusterRoleBinding(modified interface{}) *gomock.Call

UpdateClusterRoleBinding indicates an expected call of UpdateClusterRoleBinding

type MockClusterRoleClient

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

MockClusterRoleClient is a mock of ClusterRoleClient interface

func NewMockClusterRoleClient

func NewMockClusterRoleClient(ctrl *gomock.Controller) *MockClusterRoleClient

NewMockClusterRoleClient creates a new mock instance

func (*MockClusterRoleClient) CreateClusterRole

func (m *MockClusterRoleClient) CreateClusterRole(arg0 *v11.ClusterRole) (*v11.ClusterRole, error)

CreateClusterRole mocks base method

func (*MockClusterRoleClient) DeleteClusterRole

func (m *MockClusterRoleClient) DeleteClusterRole(name string, options *v12.DeleteOptions) error

DeleteClusterRole mocks base method

func (*MockClusterRoleClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockClusterRoleClient) GetClusterRole

func (m *MockClusterRoleClient) GetClusterRole(name string) (*v11.ClusterRole, error)

GetClusterRole mocks base method

func (*MockClusterRoleClient) UpdateClusterRole

func (m *MockClusterRoleClient) UpdateClusterRole(modified *v11.ClusterRole) (*v11.ClusterRole, error)

UpdateClusterRole mocks base method

type MockClusterRoleClientMockRecorder

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

MockClusterRoleClientMockRecorder is the mock recorder for MockClusterRoleClient

func (*MockClusterRoleClientMockRecorder) CreateClusterRole

func (mr *MockClusterRoleClientMockRecorder) CreateClusterRole(arg0 interface{}) *gomock.Call

CreateClusterRole indicates an expected call of CreateClusterRole

func (*MockClusterRoleClientMockRecorder) DeleteClusterRole

func (mr *MockClusterRoleClientMockRecorder) DeleteClusterRole(name, options interface{}) *gomock.Call

DeleteClusterRole indicates an expected call of DeleteClusterRole

func (*MockClusterRoleClientMockRecorder) GetClusterRole

func (mr *MockClusterRoleClientMockRecorder) GetClusterRole(name interface{}) *gomock.Call

GetClusterRole indicates an expected call of GetClusterRole

func (*MockClusterRoleClientMockRecorder) UpdateClusterRole

func (mr *MockClusterRoleClientMockRecorder) UpdateClusterRole(modified interface{}) *gomock.Call

UpdateClusterRole indicates an expected call of UpdateClusterRole

type MockCustomResourceClient

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

MockCustomResourceClient is a mock of CustomResourceClient interface

func NewMockCustomResourceClient

func NewMockCustomResourceClient(ctrl *gomock.Controller) *MockCustomResourceClient

NewMockCustomResourceClient creates a new mock instance

func (*MockCustomResourceClient) AtomicModifyCustomResource

func (m *MockCustomResourceClient) AtomicModifyCustomResource(apiGroup, version, namespace, resourceKind, resourceName string, f CustomResourceModifier, data interface{}) error

AtomicModifyCustomResource mocks base method

func (*MockCustomResourceClient) CreateCustomResource

func (m *MockCustomResourceClient) CreateCustomResource(item *unstructured.Unstructured) error

CreateCustomResource mocks base method

func (*MockCustomResourceClient) CreateCustomResourceRaw

func (m *MockCustomResourceClient) CreateCustomResourceRaw(apiGroup, version, namespace, kind string, data []byte) error

CreateCustomResourceRaw mocks base method

func (*MockCustomResourceClient) CreateCustomResourceRawIfNotFound

func (m *MockCustomResourceClient) CreateCustomResourceRawIfNotFound(apiGroup, version, namespace, kind, name string, data []byte) (bool, error)

CreateCustomResourceRawIfNotFound mocks base method

func (*MockCustomResourceClient) CreateOrUpdateCustomeResourceRaw

func (m *MockCustomResourceClient) CreateOrUpdateCustomeResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string, data []byte) error

CreateOrUpdateCustomeResourceRaw mocks base method

func (*MockCustomResourceClient) DeleteCustomResource

func (m *MockCustomResourceClient) DeleteCustomResource(apiGroup, version, namespace, resourceKind, resourceName string) error

DeleteCustomResource mocks base method

func (*MockCustomResourceClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockCustomResourceClient) GetCustomResource

func (m *MockCustomResourceClient) GetCustomResource(apiGroup, version, namespace, resourceKind, resourceName string) (*unstructured.Unstructured, error)

GetCustomResource mocks base method

func (*MockCustomResourceClient) GetCustomResourceRaw

func (m *MockCustomResourceClient) GetCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string) ([]byte, error)

GetCustomResourceRaw mocks base method

func (*MockCustomResourceClient) ListCustomResource

func (m *MockCustomResourceClient) ListCustomResource(apiGroup, version, namespace, resourceKind string) (*CustomResourceList, error)

ListCustomResource mocks base method

func (*MockCustomResourceClient) UpdateCustomResource

func (m *MockCustomResourceClient) UpdateCustomResource(item *unstructured.Unstructured) error

UpdateCustomResource mocks base method

func (*MockCustomResourceClient) UpdateCustomResourceRaw

func (m *MockCustomResourceClient) UpdateCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string, data []byte) error

UpdateCustomResourceRaw mocks base method

type MockCustomResourceClientMockRecorder

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

MockCustomResourceClientMockRecorder is the mock recorder for MockCustomResourceClient

func (*MockCustomResourceClientMockRecorder) AtomicModifyCustomResource

func (mr *MockCustomResourceClientMockRecorder) AtomicModifyCustomResource(apiGroup, version, namespace, resourceKind, resourceName, f, data interface{}) *gomock.Call

AtomicModifyCustomResource indicates an expected call of AtomicModifyCustomResource

func (*MockCustomResourceClientMockRecorder) CreateCustomResource

func (mr *MockCustomResourceClientMockRecorder) CreateCustomResource(item interface{}) *gomock.Call

CreateCustomResource indicates an expected call of CreateCustomResource

func (*MockCustomResourceClientMockRecorder) CreateCustomResourceRaw

func (mr *MockCustomResourceClientMockRecorder) CreateCustomResourceRaw(apiGroup, version, namespace, kind, data interface{}) *gomock.Call

CreateCustomResourceRaw indicates an expected call of CreateCustomResourceRaw

func (*MockCustomResourceClientMockRecorder) CreateCustomResourceRawIfNotFound

func (mr *MockCustomResourceClientMockRecorder) CreateCustomResourceRawIfNotFound(apiGroup, version, namespace, kind, name, data interface{}) *gomock.Call

CreateCustomResourceRawIfNotFound indicates an expected call of CreateCustomResourceRawIfNotFound

func (*MockCustomResourceClientMockRecorder) CreateOrUpdateCustomeResourceRaw

func (mr *MockCustomResourceClientMockRecorder) CreateOrUpdateCustomeResourceRaw(apiGroup, version, namespace, resourceKind, resourceName, data interface{}) *gomock.Call

CreateOrUpdateCustomeResourceRaw indicates an expected call of CreateOrUpdateCustomeResourceRaw

func (*MockCustomResourceClientMockRecorder) DeleteCustomResource

func (mr *MockCustomResourceClientMockRecorder) DeleteCustomResource(apiGroup, version, namespace, resourceKind, resourceName interface{}) *gomock.Call

DeleteCustomResource indicates an expected call of DeleteCustomResource

func (*MockCustomResourceClientMockRecorder) GetCustomResource

func (mr *MockCustomResourceClientMockRecorder) GetCustomResource(apiGroup, version, namespace, resourceKind, resourceName interface{}) *gomock.Call

GetCustomResource indicates an expected call of GetCustomResource

func (*MockCustomResourceClientMockRecorder) GetCustomResourceRaw

func (mr *MockCustomResourceClientMockRecorder) GetCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName interface{}) *gomock.Call

GetCustomResourceRaw indicates an expected call of GetCustomResourceRaw

func (*MockCustomResourceClientMockRecorder) ListCustomResource

func (mr *MockCustomResourceClientMockRecorder) ListCustomResource(apiGroup, version, namespace, resourceKind interface{}) *gomock.Call

ListCustomResource indicates an expected call of ListCustomResource

func (*MockCustomResourceClientMockRecorder) UpdateCustomResource

func (mr *MockCustomResourceClientMockRecorder) UpdateCustomResource(item interface{}) *gomock.Call

UpdateCustomResource indicates an expected call of UpdateCustomResource

func (*MockCustomResourceClientMockRecorder) UpdateCustomResourceRaw

func (mr *MockCustomResourceClientMockRecorder) UpdateCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName, data interface{}) *gomock.Call

UpdateCustomResourceRaw indicates an expected call of UpdateCustomResourceRaw

type MockDeploymentClient

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

MockDeploymentClient is a mock of DeploymentClient interface

func NewMockDeploymentClient

func NewMockDeploymentClient(ctrl *gomock.Controller) *MockDeploymentClient

NewMockDeploymentClient creates a new mock instance

func (*MockDeploymentClient) CreateDeployment

func (m *MockDeploymentClient) CreateDeployment(arg0 *v1.Deployment) (*v1.Deployment, error)

CreateDeployment mocks base method

func (*MockDeploymentClient) CreateOrRollingUpdateDeployment

func (m *MockDeploymentClient) CreateOrRollingUpdateDeployment(arg0 *v1.Deployment) (*v1.Deployment, bool, error)

CreateOrRollingUpdateDeployment mocks base method

func (*MockDeploymentClient) DeleteDeployment

func (m *MockDeploymentClient) DeleteDeployment(namespace, name string, options *v12.DeleteOptions) error

DeleteDeployment mocks base method

func (*MockDeploymentClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDeploymentClient) GetDeployment

func (m *MockDeploymentClient) GetDeployment(namespace, name string) (*v1.Deployment, error)

GetDeployment mocks base method

func (*MockDeploymentClient) ListDeploymentsWithLabels

func (m *MockDeploymentClient) ListDeploymentsWithLabels(namespace string, labels labels.Set) (*v1.DeploymentList, error)

ListDeploymentsWithLabels mocks base method

func (*MockDeploymentClient) PatchDeployment

func (m *MockDeploymentClient) PatchDeployment(arg0, arg1 *v1.Deployment) (*v1.Deployment, bool, error)

PatchDeployment mocks base method

func (*MockDeploymentClient) RollingPatchDeployment

func (m *MockDeploymentClient) RollingPatchDeployment(arg0, arg1 *v1.Deployment) (*v1.Deployment, bool, error)

RollingPatchDeployment mocks base method

func (*MockDeploymentClient) RollingPatchDeploymentMigrations

func (m *MockDeploymentClient) RollingPatchDeploymentMigrations(namespace, name string, f PatchFunction) (*v1.Deployment, bool, error)

RollingPatchDeploymentMigrations mocks base method

func (*MockDeploymentClient) RollingUpdateDeployment

func (m *MockDeploymentClient) RollingUpdateDeployment(arg0 *v1.Deployment) (*v1.Deployment, bool, error)

RollingUpdateDeployment mocks base method

func (*MockDeploymentClient) RollingUpdateDeploymentMigrations

func (m *MockDeploymentClient) RollingUpdateDeploymentMigrations(namespace, name string, f UpdateFunction) (*v1.Deployment, bool, error)

RollingUpdateDeploymentMigrations mocks base method

func (*MockDeploymentClient) UpdateDeployment

func (m *MockDeploymentClient) UpdateDeployment(arg0 *v1.Deployment) (*v1.Deployment, bool, error)

UpdateDeployment mocks base method

type MockDeploymentClientMockRecorder

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

MockDeploymentClientMockRecorder is the mock recorder for MockDeploymentClient

func (*MockDeploymentClientMockRecorder) CreateDeployment

func (mr *MockDeploymentClientMockRecorder) CreateDeployment(arg0 interface{}) *gomock.Call

CreateDeployment indicates an expected call of CreateDeployment

func (*MockDeploymentClientMockRecorder) CreateOrRollingUpdateDeployment

func (mr *MockDeploymentClientMockRecorder) CreateOrRollingUpdateDeployment(arg0 interface{}) *gomock.Call

CreateOrRollingUpdateDeployment indicates an expected call of CreateOrRollingUpdateDeployment

func (*MockDeploymentClientMockRecorder) DeleteDeployment

func (mr *MockDeploymentClientMockRecorder) DeleteDeployment(namespace, name, options interface{}) *gomock.Call

DeleteDeployment indicates an expected call of DeleteDeployment

func (*MockDeploymentClientMockRecorder) GetDeployment

func (mr *MockDeploymentClientMockRecorder) GetDeployment(namespace, name interface{}) *gomock.Call

GetDeployment indicates an expected call of GetDeployment

func (*MockDeploymentClientMockRecorder) ListDeploymentsWithLabels

func (mr *MockDeploymentClientMockRecorder) ListDeploymentsWithLabels(namespace, labels interface{}) *gomock.Call

ListDeploymentsWithLabels indicates an expected call of ListDeploymentsWithLabels

func (*MockDeploymentClientMockRecorder) PatchDeployment

func (mr *MockDeploymentClientMockRecorder) PatchDeployment(arg0, arg1 interface{}) *gomock.Call

PatchDeployment indicates an expected call of PatchDeployment

func (*MockDeploymentClientMockRecorder) RollingPatchDeployment

func (mr *MockDeploymentClientMockRecorder) RollingPatchDeployment(arg0, arg1 interface{}) *gomock.Call

RollingPatchDeployment indicates an expected call of RollingPatchDeployment

func (*MockDeploymentClientMockRecorder) RollingPatchDeploymentMigrations

func (mr *MockDeploymentClientMockRecorder) RollingPatchDeploymentMigrations(namespace, name, f interface{}) *gomock.Call

RollingPatchDeploymentMigrations indicates an expected call of RollingPatchDeploymentMigrations

func (*MockDeploymentClientMockRecorder) RollingUpdateDeployment

func (mr *MockDeploymentClientMockRecorder) RollingUpdateDeployment(arg0 interface{}) *gomock.Call

RollingUpdateDeployment indicates an expected call of RollingUpdateDeployment

func (*MockDeploymentClientMockRecorder) RollingUpdateDeploymentMigrations

func (mr *MockDeploymentClientMockRecorder) RollingUpdateDeploymentMigrations(namespace, name, f interface{}) *gomock.Call

RollingUpdateDeploymentMigrations indicates an expected call of RollingUpdateDeploymentMigrations

func (*MockDeploymentClientMockRecorder) UpdateDeployment

func (mr *MockDeploymentClientMockRecorder) UpdateDeployment(arg0 interface{}) *gomock.Call

UpdateDeployment indicates an expected call of UpdateDeployment

type MockRoleBindingClient

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

MockRoleBindingClient is a mock of RoleBindingClient interface

func NewMockRoleBindingClient

func NewMockRoleBindingClient(ctrl *gomock.Controller) *MockRoleBindingClient

NewMockRoleBindingClient creates a new mock instance

func (*MockRoleBindingClient) CreateRoleBinding

func (m *MockRoleBindingClient) CreateRoleBinding(arg0 *v11.RoleBinding) (*v11.RoleBinding, error)

CreateRoleBinding mocks base method

func (*MockRoleBindingClient) DeleteRoleBinding

func (m *MockRoleBindingClient) DeleteRoleBinding(namespace, name string, options *v12.DeleteOptions) error

DeleteRoleBinding mocks base method

func (*MockRoleBindingClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRoleBindingClient) GetRoleBinding

func (m *MockRoleBindingClient) GetRoleBinding(namespace, name string) (*v11.RoleBinding, error)

GetRoleBinding mocks base method

func (*MockRoleBindingClient) UpdateRoleBinding

func (m *MockRoleBindingClient) UpdateRoleBinding(modified *v11.RoleBinding) (*v11.RoleBinding, error)

UpdateRoleBinding mocks base method

type MockRoleBindingClientMockRecorder

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

MockRoleBindingClientMockRecorder is the mock recorder for MockRoleBindingClient

func (*MockRoleBindingClientMockRecorder) CreateRoleBinding

func (mr *MockRoleBindingClientMockRecorder) CreateRoleBinding(arg0 interface{}) *gomock.Call

CreateRoleBinding indicates an expected call of CreateRoleBinding

func (*MockRoleBindingClientMockRecorder) DeleteRoleBinding

func (mr *MockRoleBindingClientMockRecorder) DeleteRoleBinding(namespace, name, options interface{}) *gomock.Call

DeleteRoleBinding indicates an expected call of DeleteRoleBinding

func (*MockRoleBindingClientMockRecorder) GetRoleBinding

func (mr *MockRoleBindingClientMockRecorder) GetRoleBinding(namespace, name interface{}) *gomock.Call

GetRoleBinding indicates an expected call of GetRoleBinding

func (*MockRoleBindingClientMockRecorder) UpdateRoleBinding

func (mr *MockRoleBindingClientMockRecorder) UpdateRoleBinding(modified interface{}) *gomock.Call

UpdateRoleBinding indicates an expected call of UpdateRoleBinding

type MockRoleClient

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

MockRoleClient is a mock of RoleClient interface

func NewMockRoleClient

func NewMockRoleClient(ctrl *gomock.Controller) *MockRoleClient

NewMockRoleClient creates a new mock instance

func (*MockRoleClient) CreateRole

func (m *MockRoleClient) CreateRole(arg0 *v11.Role) (*v11.Role, error)

CreateRole mocks base method

func (*MockRoleClient) DeleteRole

func (m *MockRoleClient) DeleteRole(namespace, name string, options *v12.DeleteOptions) error

DeleteRole mocks base method

func (*MockRoleClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRoleClient) GetRole

func (m *MockRoleClient) GetRole(namespace, name string) (*v11.Role, error)

GetRole mocks base method

func (*MockRoleClient) UpdateRole

func (m *MockRoleClient) UpdateRole(modified *v11.Role) (*v11.Role, error)

UpdateRole mocks base method

type MockRoleClientMockRecorder

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

MockRoleClientMockRecorder is the mock recorder for MockRoleClient

func (*MockRoleClientMockRecorder) CreateRole

func (mr *MockRoleClientMockRecorder) CreateRole(arg0 interface{}) *gomock.Call

CreateRole indicates an expected call of CreateRole

func (*MockRoleClientMockRecorder) DeleteRole

func (mr *MockRoleClientMockRecorder) DeleteRole(namespace, name, options interface{}) *gomock.Call

DeleteRole indicates an expected call of DeleteRole

func (*MockRoleClientMockRecorder) GetRole

func (mr *MockRoleClientMockRecorder) GetRole(namespace, name interface{}) *gomock.Call

GetRole indicates an expected call of GetRole

func (*MockRoleClientMockRecorder) UpdateRole

func (mr *MockRoleClientMockRecorder) UpdateRole(modified interface{}) *gomock.Call

UpdateRole indicates an expected call of UpdateRole

type MockSecretClient

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

MockSecretClient is a mock of SecretClient interface

func NewMockSecretClient

func NewMockSecretClient(ctrl *gomock.Controller) *MockSecretClient

NewMockSecretClient creates a new mock instance

func (*MockSecretClient) CreateSecret

func (m *MockSecretClient) CreateSecret(arg0 *v10.Secret) (*v10.Secret, error)

CreateSecret mocks base method

func (*MockSecretClient) DeleteSecret

func (m *MockSecretClient) DeleteSecret(namespace, name string, options *v12.DeleteOptions) error

DeleteSecret mocks base method

func (*MockSecretClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSecretClient) GetSecret

func (m *MockSecretClient) GetSecret(namespace, name string) (*v10.Secret, error)

GetSecret mocks base method

func (*MockSecretClient) UpdateSecret

func (m *MockSecretClient) UpdateSecret(modified *v10.Secret) (*v10.Secret, error)

UpdateSecret mocks base method

type MockSecretClientMockRecorder

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

MockSecretClientMockRecorder is the mock recorder for MockSecretClient

func (*MockSecretClientMockRecorder) CreateSecret

func (mr *MockSecretClientMockRecorder) CreateSecret(arg0 interface{}) *gomock.Call

CreateSecret indicates an expected call of CreateSecret

func (*MockSecretClientMockRecorder) DeleteSecret

func (mr *MockSecretClientMockRecorder) DeleteSecret(namespace, name, options interface{}) *gomock.Call

DeleteSecret indicates an expected call of DeleteSecret

func (*MockSecretClientMockRecorder) GetSecret

func (mr *MockSecretClientMockRecorder) GetSecret(namespace, name interface{}) *gomock.Call

GetSecret indicates an expected call of GetSecret

func (*MockSecretClientMockRecorder) UpdateSecret

func (mr *MockSecretClientMockRecorder) UpdateSecret(modified interface{}) *gomock.Call

UpdateSecret indicates an expected call of UpdateSecret

type MockServiceAccountClient

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

MockServiceAccountClient is a mock of ServiceAccountClient interface

func NewMockServiceAccountClient

func NewMockServiceAccountClient(ctrl *gomock.Controller) *MockServiceAccountClient

NewMockServiceAccountClient creates a new mock instance

func (*MockServiceAccountClient) CreateServiceAccount

func (m *MockServiceAccountClient) CreateServiceAccount(arg0 *v10.ServiceAccount) (*v10.ServiceAccount, error)

CreateServiceAccount mocks base method

func (*MockServiceAccountClient) DeleteServiceAccount

func (m *MockServiceAccountClient) DeleteServiceAccount(namespace, name string, options *v12.DeleteOptions) error

DeleteServiceAccount mocks base method

func (*MockServiceAccountClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockServiceAccountClient) GetServiceAccount

func (m *MockServiceAccountClient) GetServiceAccount(namespace, name string) (*v10.ServiceAccount, error)

GetServiceAccount mocks base method

func (*MockServiceAccountClient) UpdateServiceAccount

func (m *MockServiceAccountClient) UpdateServiceAccount(modified *v10.ServiceAccount) (*v10.ServiceAccount, error)

UpdateServiceAccount mocks base method

type MockServiceAccountClientMockRecorder

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

MockServiceAccountClientMockRecorder is the mock recorder for MockServiceAccountClient

func (*MockServiceAccountClientMockRecorder) CreateServiceAccount

func (mr *MockServiceAccountClientMockRecorder) CreateServiceAccount(arg0 interface{}) *gomock.Call

CreateServiceAccount indicates an expected call of CreateServiceAccount

func (*MockServiceAccountClientMockRecorder) DeleteServiceAccount

func (mr *MockServiceAccountClientMockRecorder) DeleteServiceAccount(namespace, name, options interface{}) *gomock.Call

DeleteServiceAccount indicates an expected call of DeleteServiceAccount

func (*MockServiceAccountClientMockRecorder) GetServiceAccount

func (mr *MockServiceAccountClientMockRecorder) GetServiceAccount(namespace, name interface{}) *gomock.Call

GetServiceAccount indicates an expected call of GetServiceAccount

func (*MockServiceAccountClientMockRecorder) UpdateServiceAccount

func (mr *MockServiceAccountClientMockRecorder) UpdateServiceAccount(modified interface{}) *gomock.Call

UpdateServiceAccount indicates an expected call of UpdateServiceAccount

type MockServiceClient

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

MockServiceClient is a mock of ServiceClient interface

func NewMockServiceClient

func NewMockServiceClient(ctrl *gomock.Controller) *MockServiceClient

NewMockServiceClient creates a new mock instance

func (*MockServiceClient) CreateService

func (m *MockServiceClient) CreateService(arg0 *v10.Service) (*v10.Service, error)

CreateService mocks base method

func (*MockServiceClient) DeleteService

func (m *MockServiceClient) DeleteService(namespace, name string, options *v12.DeleteOptions) error

DeleteService mocks base method

func (*MockServiceClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockServiceClient) GetService

func (m *MockServiceClient) GetService(namespace, name string) (*v10.Service, error)

GetService mocks base method

func (*MockServiceClient) UpdateService

func (m *MockServiceClient) UpdateService(modified *v10.Service) (*v10.Service, error)

UpdateService mocks base method

type MockServiceClientMockRecorder

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

MockServiceClientMockRecorder is the mock recorder for MockServiceClient

func (*MockServiceClientMockRecorder) CreateService

func (mr *MockServiceClientMockRecorder) CreateService(arg0 interface{}) *gomock.Call

CreateService indicates an expected call of CreateService

func (*MockServiceClientMockRecorder) DeleteService

func (mr *MockServiceClientMockRecorder) DeleteService(namespace, name, options interface{}) *gomock.Call

DeleteService indicates an expected call of DeleteService

func (*MockServiceClientMockRecorder) GetService

func (mr *MockServiceClientMockRecorder) GetService(namespace, name interface{}) *gomock.Call

GetService indicates an expected call of GetService

func (*MockServiceClientMockRecorder) UpdateService

func (mr *MockServiceClientMockRecorder) UpdateService(modified interface{}) *gomock.Call

UpdateService indicates an expected call of UpdateService

type PatchFunction

type PatchFunction func(current metav1.Object) (metav1.Object, metav1.Object, error)

PatchFunction defines a function that is used to provide patch objects for a 3-way merge. The function provides the current instance of the object retrieved from the apiserver. The function should return the "original" and "modified" objects (in that order) for 3-way patch computation.

func Patch

func Patch(original metav1.Object, modified metav1.Object) PatchFunction

Patch returns a default PatchFunction implementation that passes its arguments through to the patcher directly, ignoring the current object.

Example usage:

client.PatchDaemonSet(namespace, name, types.Patch(original, current))

type RoleBindingClient

type RoleBindingClient interface {
	CreateRoleBinding(*rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)
	GetRoleBinding(namespace, name string) (*rbacv1.RoleBinding, error)
	UpdateRoleBinding(modified *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)
	DeleteRoleBinding(namespace, name string, options *metav1.DeleteOptions) error
}

RoleBindingClient contains methods for manipulating RoleBindings.

type RoleClient

type RoleClient interface {
	CreateRole(*rbacv1.Role) (*rbacv1.Role, error)
	GetRole(namespace, name string) (*rbacv1.Role, error)
	UpdateRole(modified *rbacv1.Role) (*rbacv1.Role, error)
	DeleteRole(namespace, name string, options *metav1.DeleteOptions) error
}

RoleClient contains methods for manipulating Roles.

type SecretClient

type SecretClient interface {
	CreateSecret(*v1.Secret) (*v1.Secret, error)
	GetSecret(namespace, name string) (*v1.Secret, error)
	UpdateSecret(modified *v1.Secret) (*v1.Secret, error)
	DeleteSecret(namespace, name string, options *metav1.DeleteOptions) error
}

SecretClient contains methods for manipulating Secrets

type ServiceAccountClient

type ServiceAccountClient interface {
	CreateServiceAccount(*v1.ServiceAccount) (*v1.ServiceAccount, error)
	GetServiceAccount(namespace, name string) (*v1.ServiceAccount, error)
	UpdateServiceAccount(modified *v1.ServiceAccount) (*v1.ServiceAccount, error)
	DeleteServiceAccount(namespace, name string, options *metav1.DeleteOptions) error
}

ServiceAccountClient contains methods for manipulating ServiceAccounts.

type ServiceClient

type ServiceClient interface {
	CreateService(*v1.Service) (*v1.Service, error)
	GetService(namespace, name string) (*v1.Service, error)
	UpdateService(modified *v1.Service) (*v1.Service, error)
	DeleteService(namespace, name string, options *metav1.DeleteOptions) error
}

ServiceClient contains methods for manipulating Services

type UpdateFunction

type UpdateFunction func(current metav1.Object) (metav1.Object, error)

UpdateFunction defines a function that updates an object in an Update* function. The function provides the current instance of the object retrieved from the apiserver. The function should return the updated object to be applied.

func Update

func Update(obj metav1.Object) UpdateFunction

Update returns a default UpdateFunction implementation that passes its argument through to the Update* function directly, ignoring the current object.

Example usage:

client.UpdateDaemonSet(namespace, name, types.Update(obj))

Jump to

Keyboard shortcuts

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