code: func imagePushPrivileged(ctx context.Context, cli command.Cli, authConfig types.AuthConfig, ref reference.Reference, requestPrivilege types.RequestPrivilegeFunc) (io.ReadCloser, error) {
  	encodedAuth, err := command.EncodeAuthToBase64(authConfig)
  	if err != nil {
  		return nil, err
  	}
  	options := types.ImagePushOptions{
  		RegistryAuth:  encodedAuth,
  		PrivilegeFunc: requestPrivilege,
  	}
  
  	return cli.Client().ImagePush(ctx, reference.FamiliarString(ref), options)
  }
docs: // imagePushPrivileged push the image