Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all: apply gofumpt #32

Merged
merged 1 commit into from Aug 19, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -1,11 +1,12 @@
package client

import (
"cloud.google.com/go/firestore"
"encoding/json"
"net/http"
"os"
"time"

"cloud.google.com/go/firestore"
)

const FuzzitEndpoint = "https://app.fuzzit.dev"
@@ -88,7 +89,7 @@ func LoadFuzzitFromCache() (*FuzzitClient, error) {
return nil, err
}

//if c.ApiKey == "" {
// if c.ApiKey == "" {
// return errors.New("API Key is not configured (will have access only to public repositories)")
//}

@@ -2,23 +2,26 @@ package client

import (
"archive/tar"
"cloud.google.com/go/firestore"
"context"
"encoding/json"
"fmt"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/pkg/stdcopy"
"github.com/google/uuid"
"github.com/mholt/archiver"
"google.golang.org/api/iterator"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
"regexp"
"strings"

"cloud.google.com/go/firestore"

"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/pkg/stdcopy"
"github.com/google/uuid"
"github.com/mholt/archiver"
"google.golang.org/api/iterator"

//"github.com/docker/docker/api/types/container"
"github.com/docker/docker/client"
//"github.com/docker/docker/pkg/stdcopy"
@@ -257,7 +260,8 @@ func (c *FuzzitClient) CreateLocalJob(jobConfig Job, files []string) error {
"CORPUS_LINK=" + corpusLink,
"SEED_LINK=" + seedLink,
"ARGS=" + jobConfig.Args,
"LD_LIBRARY_PATH=/app"},
"LD_LIBRARY_PATH=/app",
},
jobConfig.EnvironmentVariables...),
Image: "docker.io/fuzzitdev/fuzzit:stretch-llvm8",
Cmd: []string{"/bin/sh", "/app/run.sh"},
@@ -17,9 +17,10 @@ limitations under the License.
package cmd

import (
"log"

"github.com/fuzzitdev/fuzzit/client"
"github.com/spf13/cobra"
"log"
)

// authCmd represents the auth command
@@ -16,8 +16,9 @@ limitations under the License.
package cmd

import (
"github.com/spf13/cobra"
"os"

"github.com/spf13/cobra"
)

// completionCmd represents the completion command
@@ -16,10 +16,11 @@ limitations under the License.
package cmd

import (
"log"

"github.com/fuzzitdev/fuzzit/client"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"log"
)

// createCmd represents the create command
@@ -16,10 +16,11 @@ limitations under the License.
package cmd

import (
"github.com/fuzzitdev/fuzzit/client"
"github.com/spf13/cobra"
"log"
"strings"

"github.com/fuzzitdev/fuzzit/client"
"github.com/spf13/cobra"
)

// downloadCmd represents the download command
@@ -74,7 +75,6 @@ var downloadCmd = &cobra.Command{
} else {
log.Fatalf("resource should be either corpus or seed")
}

},
}

@@ -16,10 +16,11 @@ limitations under the License.
package cmd

import (
"log"

"github.com/fuzzitdev/fuzzit/client"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"log"
)

// getCmd represents the get command
@@ -16,11 +16,12 @@ limitations under the License.
package cmd

import (
"log"
"strings"

"github.com/fuzzitdev/fuzzit/client"
"github.com/spf13/cobra"
"gopkg.in/src-d/go-git.v4"
"log"
"strings"
)

// jobCmd represents the job command
@@ -17,12 +17,13 @@ package cmd

import (
"fmt"
"github.com/fuzzitdev/fuzzit/client"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"log"
"os"
"strings"

"github.com/fuzzitdev/fuzzit/client"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)

var gFuzzitClient *client.FuzzitClient
@@ -46,7 +47,6 @@ func init() {
if err := viper.BindPFlag("api-key", rootCmd.PersistentFlags().Lookup("api-key")); err != nil {
log.Fatalln(err)
}

}

// initConfig reads in config file and ENV variables if set.
@@ -16,8 +16,9 @@ limitations under the License.
package cmd

import (
"github.com/spf13/cobra"
"log"

"github.com/spf13/cobra"
)

// targetCmd represents the target command
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.