hunk.code_window: }
   func CreateSimpleClient() (*client.Client, error) {
   	return client.NewClientWithOpts(
   		client.WithVersion(dockerClientVersion),
   	)
   }
   func createTCPClient(endpoint *portainer.Endpoint, timeout *time.Duration) (*client.Client, error) {
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit: 		client.WithAPIVersionNegotiation(),
  
hunk.file_path: api/docker/client/client.go
hunk.type: replace
file: import _ from 'lodash';
  
  export function trimSHA(imageName: string) {
    if (!imageName) {
      return '';
    }
    if (imageName.indexOf('sha256:') === 0) {
      return imageName.substring(7, 19);
    }
    return _.split(imageName, '@sha256')[0];
  }
  
  export function joinCommand(command: null | Array<string> = []) {
    if (!command) {
      return '';
    }
  
    return command.join(' ');
  }
  