hunk.code_window: // StartExecProcess will start an exec process inside a container located inside a pod inside a specific namespace
   // using the specified command. The stdin parameter will be bound to the stdin process and the stdout process will write
   // to the stdout parameter.
   // This function only works against a local endpoint using an in-cluster config with the user's SA token.
   func (kcl *KubeClient) StartExecProcess(token string, useAdminToken bool, namespace, podName, containerName string, command []string, stdin io.Reader, stdout io.Writer) error {
   	config, err := rest.InClusterConfig()
   	if err != nil {
  
hunk.labels: keep keep keep keep keep replace keep keep
hunk.after_edit: // This is a blocking operation.
   func (kcl *KubeClient) StartExecProcess(token string, useAdminToken bool, namespace, podName, containerName string, command []string, stdin io.Reader, stdout io.Writer, errChan chan error) {
  
hunk.file_path: api/kubernetes/cli/exec.go
hunk.type: replace
file: import angular from 'angular';
  
  angular.module('portainer.edge').factory('EdgeGroupService', function EdgeGroupServiceFactory(EdgeGroups) {
    var service = {};
  
    service.group = function group(groupId) {
      return EdgeGroups.get({ id: groupId }).$promise;
    };
  
    service.groups = function groups() {
      return EdgeGroups.query({}).$promise;
    };
  
    service.remove = function remove(groupId) {
      return EdgeGroups.remove({ id: groupId }).$promise;
    };
  
    service.create = function create(group) {
      return EdgeGroups.create(group).$promise;
    };
  
    service.update = function update(group) {
      return EdgeGroups.update(group).$promise;
    };
  
    return service;
  });
  