{"modulePath":"github.com/operator-framework/operator-lifecycle-manager","version":"v0.46.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package operatorclient\n\n## Types\n\n```go\ntype APIServiceClient interface {\n\tCreateAPIService(*apiregistrationv1.APIService) (*apiregistrationv1.APIService, error)\n\tGetAPIService(name string) (*apiregistrationv1.APIService, error)\n\tUpdateAPIService(modified *apiregistrationv1.APIService) (*apiregistrationv1.APIService, error)\n\tDeleteAPIService(name string, options *metav1.DeleteOptions) error\n}\n```\nAPIServiceClient contains methods for manipulating APIServiceBindings.\n\n```go\ntype Client struct {\n\tkubernetes.Interface\n\t// contains filtered or unexported fields\n}\n```\nClient is a kubernetes client that can talk to the API server.\n\n```go\nfunc (c *Client) ApiextensionsInterface() apiextensions.Interface\n```\nApiextensionsInterface returns the API extension interface.\n\n```go\nfunc (c *Client) ApiregistrationV1Interface() apiregistration.Interface\n```\nApiregistrationV1Interface returns the API registration (aggregated apiserver) interface\n\n```go\nfunc (c *Client) ApplyClusterRoleBinding(applyConfig *acv1.ClusterRoleBindingApplyConfiguration, applyOptions metav1.ApplyOptions) (*rbacv1.ClusterRoleBinding, error)\n```\nApplyClusterRoleBinding applies the roleBinding.\n\n```go\nfunc (c *Client) ApplyRoleBinding(applyConfig *acv1.RoleBindingApplyConfiguration, applyOptions metav1.ApplyOptions) (*rbacv1.RoleBinding, error)\n```\nApplyRoleBinding applies the roleBinding.\n\n```go\nfunc (c *Client) ApplyService(applyConfig *acv1.ServiceApplyConfiguration, applyOptions metav1.ApplyOptions) (*v1.Service, error)\n```\nApplyService applies the Service.\n\n```go\nfunc (c *Client) AtomicModifyCustomResource(apiGroup, version, namespace, resourcePlural, resourceName string, f CustomResourceModifier, data interface{}) error\n```\nAtomicModifyCustomResource gets the custom resource, modifies it and writes it back. If it's modified by other writers, we will retry until it succeeds.\n\n```go\nfunc (c *Client) CreateAPIService(ig *apiregistrationv1.APIService) (*apiregistrationv1.APIService, error)\n```\nCreateAPIService creates the APIService or Updates if it already exists.\n\n```go\nfunc (c *Client) CreateClusterRole(r *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)\n```\nCreateClusterRole creates the ClusterRole or Updates if it already exists.\n\n```go\nfunc (c *Client) CreateClusterRoleBinding(ig *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)\n```\nCreateRoleBinding creates the roleBinding or Updates if it already exists.\n\n```go\nfunc (c *Client) CreateConfigMap(ig *corev1.ConfigMap) (*corev1.ConfigMap, error)\n```\nCreateConfigMap creates the ConfigMap.\n\n```go\nfunc (c *Client) CreateCustomResource(item *unstructured.Unstructured) error\n```\nCreateCustomResource creates the custom resource.\n\n```go\nfunc (c *Client) CreateCustomResourceRaw(apiGroup, version, namespace, kind string, data []byte) error\n```\nCreateCustomResourceRaw creates the raw bytes of the custom resource.\n\n```go\nfunc (c *Client) CreateCustomResourceRawIfNotFound(apiGroup, version, namespace, kind, name string, data []byte) (bool, error)\n```\nCreateCustomResourceRawIfNotFound creates the raw bytes of the custom resource if it doesn't exist, or Updates if it does exist. It also returns a boolean to indicate whether a new custom resource is created.\n\n```go\nfunc (c *Client) CreateDeployment(dep *appsv1.Deployment) (*appsv1.Deployment, error)\n```\nCreateDeployment creates the Deployment object or Updates if it already exists.\n\n```go\nfunc (c *Client) CreateNetworkPolicy(in *networkingv1.NetworkPolicy) (*networkingv1.NetworkPolicy, error)\n```\nCreateNetworkPolicy creates the NetworkPolicy.\n\n```go\nfunc (c *Client) CreateOrRollingUpdateDeployment(dep *appsv1.Deployment) (*appsv1.Deployment, bool, error)\n```\nCreateOrRollingUpdateDeployment 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.\n\n```go\nfunc (c *Client) CreateOrUpdateCustomeResourceRaw(apiGroup, version, namespace, resourcePlural, resourceName string, data []byte) error\n```\nCreateOrUpdateCustomeResourceRaw creates the custom resource if it doesn't exist. If the custom resource exists, it updates the existing one.\n\n```go\nfunc (c *Client) CreateRole(r *rbacv1.Role) (*rbacv1.Role, error)\n```\nCreateRole creates the role or Updates if it already exists.\n\n```go\nfunc (c *Client) CreateRoleBinding(ig *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)\n```\nCreateRoleBinding creates the roleBinding or Updates if it already exists.\n\n```go\nfunc (c *Client) CreateSecret(ig *v1.Secret) (*v1.Secret, error)\n```\nCreateSecret creates the Secret or Updates if it already exists.\n\n```go\nfunc (c *Client) CreateService(ig *v1.Service) (*v1.Service, error)\n```\nCreateService creates the Service or Updates if it already exists.\n\n```go\nfunc (c *Client) CreateServiceAccount(ig *v1.ServiceAccount) (*v1.ServiceAccount, error)\n```\nCreateServiceAccount creates the serviceAccount.\n\n```go\nfunc (c *Client) DeleteAPIService(name string, options *metav1.DeleteOptions) error\n```\nDeleteAPIService deletes the APIService.\n\n```go\nfunc (c *Client) DeleteClusterRole(name string, options *metav1.DeleteOptions) error\n```\nDeleteClusterRole deletes the ClusterRole\n\n```go\nfunc (c *Client) DeleteClusterRoleBinding(name string, options *metav1.DeleteOptions) error\n```\nDeleteRoleBinding deletes the roleBinding.\n\n```go\nfunc (c *Client) DeleteConfigMap(namespace, name string, options *metav1.DeleteOptions) error\n```\nDeleteConfigMap deletes the ConfigMap.\n\n```go\nfunc (c *Client) DeleteCustomResource(apiGroup, version, namespace, resourcePlural, resourceName string) error\n```\nDeleteCustomResource deletes the  with the given name.\n\n```go\nfunc (c *Client) DeleteDeployment(namespace, name string, options *metav1.DeleteOptions) error\n```\nDeleteDeployment deletes the Deployment object.\n\n```go\nfunc (c *Client) DeleteNetworkPolicy(namespace, name string, options *metav1.DeleteOptions) error\n```\nDeleteNetworkPolicy deletes the NetworkPolicy.\n\n```go\nfunc (c *Client) DeleteRole(namespace, name string, options *metav1.DeleteOptions) error\n```\nDeleteRole deletes the role.\n\n```go\nfunc (c *Client) DeleteRoleBinding(namespace, name string, options *metav1.DeleteOptions) error\n```\nDeleteRoleBinding deletes the roleBinding.\n\n```go\nfunc (c *Client) DeleteSecret(namespace, name string, options *metav1.DeleteOptions) error\n```\nDeleteSecret deletes the Secret.\n\n```go\nfunc (c *Client) DeleteService(namespace, name string, options *metav1.DeleteOptions) error\n```\nDeleteService deletes the Service.\n\n```go\nfunc (c *Client) DeleteServiceAccount(namespace, name string, options *metav1.DeleteOptions) error\n```\nDeleteServiceAccount deletes the serviceAccount.\n\n```go\nfunc (c *Client) GetAPIService(name string) (*apiregistrationv1.APIService, error)\n```\nGetAPIService returns the existing APIService.\n\n```go\nfunc (c *Client) GetClusterRole(name string) (*rbacv1.ClusterRole, error)\n```\nGetClusterRole returns the existing ClusterRole.\n\n```go\nfunc (c *Client) GetClusterRoleBinding(name string) (*rbacv1.ClusterRoleBinding, error)\n```\nGetRoleBinding returns the existing roleBinding.\n\n```go\nfunc (c *Client) GetConfigMap(namespace, name string) (*corev1.ConfigMap, error)\n```\nGetConfigMap returns the existing ConfigMap.\n\n```go\nfunc (c *Client) GetCustomResource(apiGroup, version, namespace, resourcePlural, resourceName string) (*unstructured.Unstructured, error)\n```\nGetCustomResource returns the custom resource as \\*unstructured.Unstructured by the given name.\n\n```go\nfunc (c *Client) GetCustomResourceRaw(apiGroup, version, namespace, resourcePlural, resourceName string) ([]byte, error)\n```\nGetCustomResourceRaw returns the custom resource's raw body data by the given name.\n\n```go\nfunc (c *Client) GetDeployment(namespace, name string) (*appsv1.Deployment, error)\n```\nGetDeployment returns the Deployment object for the given namespace and name.\n\n```go\nfunc (c *Client) GetNetworkPolicy(namespace, name string) (*networkingv1.NetworkPolicy, error)\n```\nGetNetworkPolicy returns the existing NetworkPolicy.\n\n```go\nfunc (c *Client) GetRole(namespace, name string) (*rbacv1.Role, error)\n```\nGetRole returns the existing role.\n\n```go\nfunc (c *Client) GetRoleBinding(namespace, name string) (*rbacv1.RoleBinding, error)\n```\nGetRoleBinding returns the existing roleBinding.\n\n```go\nfunc (c *Client) GetSecret(namespace, name string) (*v1.Secret, error)\n```\nGetSecret returns the existing Secret.\n\n```go\nfunc (c *Client) GetService(namespace, name string) (*v1.Service, error)\n```\nGetService returns the existing Service.\n\n```go\nfunc (c *Client) GetServiceAccount(namespace, name string) (*v1.ServiceAccount, error)\n```\nGetServiceAccount returns the existing serviceAccount.\n\n```go\nfunc (c *Client) KubernetesInterface() kubernetes.Interface\n```\nKubernetesInterface returns the Kubernetes interface.\n\n```go\nfunc (c *Client) ListCustomResource(apiGroup, version, namespace, resourcePlural string) (*CustomResourceList, error)\n```\nListCustomResource lists all custom resources for the given namespace.\n\n```go\nfunc (c *Client) ListDeploymentsWithLabels(namespace string, labels labels.Set) (*appsv1.DeploymentList, error)\n```\nListDeploymentsWithLabels returns a list of deployments that matches the label selector. An empty list will be returned if no such deployments is found.\n\n```go\nfunc (c *Client) PatchDeployment(original, modified *appsv1.Deployment) (*appsv1.Deployment, bool, error)\n```\nPatchDeployment updates a Deployment object by performing a 3-way patch merge between the existing Deployment and \\`original\\` and \\`modified\\` manifests.\n\nReturns the latest Deployment and true if it was updated, or an error.\n\n```go\nfunc (c *Client) RollingPatchDeployment(original, modified *appsv1.Deployment) (*appsv1.Deployment, bool, error)\n```\nRollingPatchDeployment performs a 3-way patch merge followed by rolling update on the given Deployment. It requires that the Deployment uses the RollingUpdateDeploymentStrategyType update strategy.\n\nRollingPatchDeployment will run any before / after migrations that have been specified in the upgrade options.\n\n```go\nfunc (c *Client) RollingPatchDeploymentMigrations(namespace, name string, f PatchFunction) (*appsv1.Deployment, bool, error)\n```\nRollingPatchDeploymentMigrations performs a 3-way patch merge followed by rolling update on the given Deployment. It requires that the Deployment uses the RollingUpdateDeploymentStrategyType update strategy.\n\nRollingPatchDeploymentMigrations will run any before / after migrations that have been specified in the upgrade options.\n\n```go\nfunc (c *Client) RollingUpdateDeployment(dep *appsv1.Deployment) (*appsv1.Deployment, bool, error)\n```\nRollingUpdateDeployment performs a rolling update on the given Deployment. It requires that the Deployment uses the RollingUpdateDeploymentStrategyType update strategy.\n\n```go\nfunc (c *Client) RollingUpdateDeploymentMigrations(namespace, name string, f UpdateFunction) (*appsv1.Deployment, bool, error)\n```\nRollingUpdateDeploymentMigrations performs a rolling update on the given Deployment. It requires that the Deployment uses the RollingUpdateDeploymentStrategyType update strategy.\n\nRollingUpdateDeploymentMigrations will run any before / during / after migrations that have been specified in the upgrade options.\n\n```go\nfunc (c *Client) UpdateAPIService(apiService *apiregistrationv1.APIService) (*apiregistrationv1.APIService, error)\n```\nUpdateAPIService will update the given APIService resource.\n\n```go\nfunc (c *Client) UpdateClusterRole(crb *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)\n```\nUpdateClusterRole will update the given ClusterRole.\n\n```go\nfunc (c *Client) UpdateClusterRoleBinding(crb *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)\n```\nUpdateRoleBinding will update the given RoleBinding resource.\n\n```go\nfunc (c *Client) UpdateConfigMap(configmap *corev1.ConfigMap) (*corev1.ConfigMap, error)\n```\nUpdateConfigMap will update the given ConfigMap resource.\n\n```go\nfunc (c *Client) UpdateCustomResource(item *unstructured.Unstructured) error\n```\nUpdateCustomResource updates the custom resource. To do an atomic update, use AtomicModifyCustomResource().\n\n```go\nfunc (c *Client) UpdateCustomResourceRaw(apiGroup, version, namespace, resourcePlural, resourceName string, data []byte) error\n```\nUpdateCustomResourceRaw updates the thirdparty resource with the raw data.\n\n```go\nfunc (c *Client) UpdateDeployment(dep *appsv1.Deployment) (*appsv1.Deployment, bool, error)\n```\nUpdateDeployment updates a Deployment object by performing a 2-way patch between the existing Deployment and the result of the UpdateFunction.\n\nReturns the latest Deployment and true if it was updated, or an error.\n\n```go\nfunc (c *Client) UpdateNetworkPolicy(networkPolicy *networkingv1.NetworkPolicy) (*networkingv1.NetworkPolicy, error)\n```\nUpdateNetworkPolicy will update the given NetworkPolicy resource.\n\n```go\nfunc (c *Client) UpdateRole(crb *rbacv1.Role) (*rbacv1.Role, error)\n```\nUpdateRole will update the given Role resource.\n\n```go\nfunc (c *Client) UpdateRoleBinding(crb *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)\n```\nUpdateRoleBinding will update the given RoleBinding resource.\n\n```go\nfunc (c *Client) UpdateSecret(secret *v1.Secret) (*v1.Secret, error)\n```\nUpdateSecret will update the given Secret resource.\n\n```go\nfunc (c *Client) UpdateService(service *v1.Service) (*v1.Service, error)\n```\nUpdateService will update the given Service resource.\n\n```go\nfunc (c *Client) UpdateServiceAccount(sa *v1.ServiceAccount) (*v1.ServiceAccount, error)\n```\nUpdateServiceAccount will update the given ServiceAccount resource.\n\n```go\ntype ClientInterface interface {\n\tKubernetesInterface() kubernetes.Interface\n\tApiextensionsInterface() apiextensions.Interface\n\tApiregistrationV1Interface() apiregistration.Interface\n\tAPIServiceClient\n\tCustomResourceClient\n\tSecretClient\n\tServiceClient\n\tServiceAccountClient\n\tRoleClient\n\tRoleBindingClient\n\tClusterRoleBindingClient\n\tClusterRoleClient\n\tDeploymentClient\n\tConfigMapClient\n\tNetworkPolicyClient\n}\n```\n\n```go\nfunc NewClient(k8sClient kubernetes.Interface, extclient apiextensions.Interface, regclient apiregistration.Interface) ClientInterface\n```\nNewClient creates a kubernetes client\n\n```go\nfunc NewClientFromConfig(kubeconfig string, logger *logrus.Logger) ClientInterface\n```\nNewClient creates a kubernetes client or bails out on on failures.\n\n```go\nfunc NewClientFromRestConfig(config *rest.Config) (client ClientInterface, err error)\n```\n\n```go\ntype ClusterRoleBindingClient interface {\n\tApplyClusterRoleBinding(applyConfig *rbacv1ac.ClusterRoleBindingApplyConfiguration, applyOptions metav1.ApplyOptions) (*rbacv1.ClusterRoleBinding, error)\n\tCreateClusterRoleBinding(*rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)\n\tGetClusterRoleBinding(name string) (*rbacv1.ClusterRoleBinding, error)\n\tUpdateClusterRoleBinding(modified *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)\n\tDeleteClusterRoleBinding(name string, options *metav1.DeleteOptions) error\n}\n```\nClusterRoleBindingClient contains methods for manipulating ClusterRoleBindings.\n\n```go\ntype ClusterRoleClient interface {\n\tCreateClusterRole(*rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)\n\tGetClusterRole(name string) (*rbacv1.ClusterRole, error)\n\tUpdateClusterRole(modified *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)\n\tDeleteClusterRole(name string, options *metav1.DeleteOptions) error\n}\n```\nClusterRoleClient contains methods for manipulating ClusterRoleBindings.\n\n```go\ntype ConfigMapClient interface {\n\tCreateConfigMap(*v1.ConfigMap) (*v1.ConfigMap, error)\n\tGetConfigMap(namespace, name string) (*v1.ConfigMap, error)\n\tUpdateConfigMap(modified *v1.ConfigMap) (*v1.ConfigMap, error)\n\tDeleteConfigMap(namespace, name string, options *metav1.DeleteOptions) error\n}\n```\nConfigMapClient contains methods for the ConfigMap resource\n\n```go\ntype CustomResourceClient interface {\n\tGetCustomResource(apiGroup, version, namespace, resourceKind, resourceName string) (*unstructured.Unstructured, error)\n\tGetCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string) ([]byte, error)\n\tCreateCustomResource(item *unstructured.Unstructured) error\n\tCreateCustomResourceRaw(apiGroup, version, namespace, kind string, data []byte) error\n\tCreateCustomResourceRawIfNotFound(apiGroup, version, namespace, kind, name string, data []byte) (bool, error)\n\tUpdateCustomResource(item *unstructured.Unstructured) error\n\tUpdateCustomResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string, data []byte) error\n\tCreateOrUpdateCustomeResourceRaw(apiGroup, version, namespace, resourceKind, resourceName string, data []byte) error\n\tDeleteCustomResource(apiGroup, version, namespace, resourceKind, resourceName string) error\n\tAtomicModifyCustomResource(apiGroup, version, namespace, resourceKind, resourceName string, f CustomResourceModifier, data interface{}) error\n\tListCustomResource(apiGroup, version, namespace, resourceKind string) (*CustomResourceList, error)\n}\n```\nCustomResourceClient contains methods for the Custom Resource.\n\n```go\ntype CustomResourceList struct {\n\tmetav1.TypeMeta   `json:\",inline\"`\n\tmetav1.ObjectMeta `json:\"metadata\"`\n\n\tItems []*unstructured.Unstructured `json:\"items\"`\n}\n```\nCustomResourceList represents a list of custom resource objects that will be returned from a List() operation.\n\n```go\ntype CustomResourceModifier func(*unstructured.Unstructured, interface{}) error\n```\nCustomResourceModifier takes the custom resource object, and modifies it in-place.\n\n```go\ntype DeploymentClient interface {\n\tGetDeployment(namespace, name string) (*appsv1.Deployment, error)\n\tCreateDeployment(*appsv1.Deployment) (*appsv1.Deployment, error)\n\tDeleteDeployment(namespace, name string, options *metav1.DeleteOptions) error\n\tUpdateDeployment(*appsv1.Deployment) (*appsv1.Deployment, bool, error)\n\tPatchDeployment(*appsv1.Deployment, *appsv1.Deployment) (*appsv1.Deployment, bool, error)\n\tRollingUpdateDeployment(*appsv1.Deployment) (*appsv1.Deployment, bool, error)\n\tRollingPatchDeployment(*appsv1.Deployment, *appsv1.Deployment) (*appsv1.Deployment, bool, error)\n\tRollingUpdateDeploymentMigrations(namespace, name string, f UpdateFunction) (*appsv1.Deployment, bool, error)\n\tRollingPatchDeploymentMigrations(namespace, name string, f PatchFunction) (*appsv1.Deployment, bool, error)\n\tCreateOrRollingUpdateDeployment(*appsv1.Deployment) (*appsv1.Deployment, bool, error)\n\tListDeploymentsWithLabels(namespace string, labels labels.Set) (*appsv1.DeploymentList, error)\n}\n```\nDeploymentClient contains methods for the Deployment resource.\n\n```go\ntype NetworkPolicyClient interface {\n\tCreateNetworkPolicy(*networkingv1.NetworkPolicy) (*networkingv1.NetworkPolicy, error)\n\tGetNetworkPolicy(namespace, name string) (*networkingv1.NetworkPolicy, error)\n\tUpdateNetworkPolicy(modified *networkingv1.NetworkPolicy) (*networkingv1.NetworkPolicy, error)\n\tDeleteNetworkPolicy(namespace, name string, options *metav1.DeleteOptions) error\n}\n```\nNetworkPolicyClient contains methods for the NetworkPolicy resource\n\n```go\ntype PatchFunction func(current metav1.Object) (metav1.Object, metav1.Object, error)\n```\nPatchFunction 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.\n\n```go\nfunc Patch(original metav1.Object, modified metav1.Object) PatchFunction\n```\nPatch returns a default PatchFunction implementation that passes its arguments through to the patcher directly, ignoring the current object.\n\nExample usage:\n\nclient.PatchDaemonSet(namespace, name, types.Patch(original, current))\n\n```go\ntype RoleBindingClient interface {\n\tApplyRoleBinding(applyConfig *rbacv1ac.RoleBindingApplyConfiguration, applyOptions metav1.ApplyOptions) (*rbacv1.RoleBinding, error)\n\tCreateRoleBinding(*rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)\n\tGetRoleBinding(namespace, name string) (*rbacv1.RoleBinding, error)\n\tUpdateRoleBinding(modified *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)\n\tDeleteRoleBinding(namespace, name string, options *metav1.DeleteOptions) error\n}\n```\nRoleBindingClient contains methods for manipulating RoleBindings.\n\n```go\ntype RoleClient interface {\n\tCreateRole(*rbacv1.Role) (*rbacv1.Role, error)\n\tGetRole(namespace, name string) (*rbacv1.Role, error)\n\tUpdateRole(modified *rbacv1.Role) (*rbacv1.Role, error)\n\tDeleteRole(namespace, name string, options *metav1.DeleteOptions) error\n}\n```\nRoleClient contains methods for manipulating Roles.\n\n```go\ntype SecretClient interface {\n\tCreateSecret(*v1.Secret) (*v1.Secret, error)\n\tGetSecret(namespace, name string) (*v1.Secret, error)\n\tUpdateSecret(modified *v1.Secret) (*v1.Secret, error)\n\tDeleteSecret(namespace, name string, options *metav1.DeleteOptions) error\n}\n```\nSecretClient contains methods for manipulating Secrets\n\n```go\ntype ServiceAccountClient interface {\n\tCreateServiceAccount(*v1.ServiceAccount) (*v1.ServiceAccount, error)\n\tGetServiceAccount(namespace, name string) (*v1.ServiceAccount, error)\n\tUpdateServiceAccount(modified *v1.ServiceAccount) (*v1.ServiceAccount, error)\n\tDeleteServiceAccount(namespace, name string, options *metav1.DeleteOptions) error\n}\n```\nServiceAccountClient contains methods for manipulating ServiceAccounts.\n\n```go\ntype ServiceClient interface {\n\tApplyService(*corev1ac.ServiceApplyConfiguration, metav1.ApplyOptions) (*v1.Service, error)\n\tCreateService(*v1.Service) (*v1.Service, error)\n\tGetService(namespace, name string) (*v1.Service, error)\n\tUpdateService(modified *v1.Service) (*v1.Service, error)\n\tDeleteService(namespace, name string, options *metav1.DeleteOptions) error\n}\n```\nServiceClient contains methods for manipulating Services\n\n```go\ntype UpdateFunction func(current metav1.Object) (metav1.Object, error)\n```\nUpdateFunction 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.\n\n```go\nfunc Update(obj metav1.Object) UpdateFunction\n```\nUpdate returns a default UpdateFunction implementation that passes its argument through to the Update\\* function directly, ignoring the current object.\n\nExample usage:\n\nclient.UpdateDaemonSet(namespace, name, types.Update(obj))\n\n","path":"github.com/operator-framework/operator-lifecycle-manager/pkg/lib/operatorclient","name":"operatorclient","synopsis":"","isRedistributable":true}
